<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ShipCAD: ShipCADlib/developedpatch.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ShipCAD
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_f0b6ef187c5b1483641b038f81654ac4.html">ShipCADlib</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">developedpatch.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="developedpatch_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*##############################################################################################</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *    ShipCAD                                                                                  *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *    Copyright 2017, by Greg Green &lt;ggreen@bit-builder.com&gt;                                   *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *    Original Copyright header below                                                          *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *    This code is distributed as part of the FREE!ship project. FREE!ship is an               *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *    open source surface-modelling program based on subdivision surfaces and intended for     *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *    designing ships.                                                                         *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *    Copyright © 2005, by Martijn van Engeland                                                *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *    e-mail                  : Info@FREEship.org                                              *</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *    FREE!ship project page  : https://sourceforge.net/projects/freeship                      *</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *    FREE!ship homepage      : www.FREEship.org                                               *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *    This program is free software; you can redistribute it and/or modify it under            *</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *    the terms of the GNU General Public License as published by the                          *</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *    Free Software Foundation; either version 2 of the License, or (at your option)           *</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *    any later version.                                                                       *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *    This program is distributed in the hope that it will be useful, but WITHOUT ANY          *</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A          *</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *    PARTICULAR PURPOSE. See the GNU General Public License for more details.                 *</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> *    You should have received a copy of the GNU General Public License along with             *</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> *    this program; if not, write to the Free Software Foundation, Inc.,                       *</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *    59 Temple Place, Suite 330, Boston, MA 02111-1307 USA                                    *</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> *#############################################################################################*/</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;cmath&gt;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="developedpatch_8h.html">developedpatch.h</a>&quot;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="plane_8h.html">plane.h</a>&quot;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="subdivlayer_8h.html">subdivlayer.h</a>&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="subdivface_8h.html">subdivface.h</a>&quot;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="subdivpoint_8h.html">subdivpoint.h</a>&quot;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="subdivsurface_8h.html">subdivsurface.h</a>&quot;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="subdivedge_8h.html">subdivedge.h</a>&quot;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="viewport_8h.html">viewport.h</a>&quot;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="shader_8h.html">shader.h</a>&quot;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="utility_8h.html">utility.h</a>&quot;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="shipcadlib_8h.html">shipcadlib.h</a>&quot;</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespaceShipCAD.html">ShipCAD</a>;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#ac204705b008b75aa3633a4025d14e518">   49</a></span>&#160;DevelopedPatch::DevelopedPatch(<a class="code" href="classShipCAD_1_1SubdivisionLayer.html">SubdivisionLayer</a>* layer)</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    : _owner(layer), _stations(true), _waterlines(true), _buttocks(true),</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;      _diagonals(true)</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;{</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#af3c4ba4cad20580cc8d5a4591b0bffd0">clear</a>();</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;}</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#af3c4ba4cad20580cc8d5a4591b0bffd0">   56</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#af3c4ba4cad20580cc8d5a4591b0bffd0">DevelopedPatch::clear</a>()</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;{</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a425239fe90e8afd53ad126a1afdce42f">_connectedMirror</a> = 0;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a573e309a7022ad3b2eef7441b1f9f663">_xgrid</a> = 1.0;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a501d803bd3252e9949a521cdd6ccff7b">_ygrid</a> = 1.0;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ae3ef9cf6fd1e85f4739ea676b1a10aac">_numIterations</a> = 0;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0af8b4e9e1ee667c781fef6df56ca7d3">_name</a> = <span class="stringliteral">&quot;&quot;</span>;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.clear();</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2c7e5cadc05bcf6a66992d7269a9971e">_edges</a>.clear();</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22be478eddc1140e6b800060c6ab513b">_donelist</a>.clear();</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ae668e0bc0c43821a883881c752fd4725">_corners</a>.clear();</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ae27386140a170f80afed4565202f522c">_boundaryEdges</a>.clear();</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a997ac5cd92f3479d976f79a4da064d42">_edgeErrors</a>.clear();</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ab91b09750cdae69f7f39b12980191f5e">setRotation</a>(0.0);</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a88ff1deb88a87de3e54de5169edb542a">_mirrorPlane</a> = <a class="code" href="classShipCAD_1_1Plane.html">Plane</a>();</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a7fe7981020e5078148b87c9b0bab9075">_min2D</a> = <a class="code" href="namespaceShipCAD.html#ab47218dccdf4c94d5989b2e5b13d8603">ZERO2</a>;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2d4528866ab65f5e92a808c21134003e">_max2D</a> = <a class="code" href="namespaceShipCAD.html#ab47218dccdf4c94d5989b2e5b13d8603">ZERO2</a>;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a58a7a720496ce4fe60118e4e6e477fdd">_translation</a> = <a class="code" href="namespaceShipCAD.html#ab47218dccdf4c94d5989b2e5b13d8603">ZERO2</a>;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#af60d915295602a7d973f4accfe6f1074">_showSolid</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a9f3f6d98182ef33bf1bef3bdacd41ecc">_showBoundingBox</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a7ac65e1c08ede7d63c94b4da7bfe6443">_showInteriorEdges</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ab970c1f908562c329577a568aa011268">_showStations</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a647c43e415156bab3ecda6a849d4bb70">_showButtocks</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a876f5a294f194b79112c224ed66db35d">_showWaterlines</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#aff3046ee214026327f4cfda2733c31c6">_showDiagonals</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#af20d320001ec91d649b59488bf08000e">_showErrorEdges</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a349177098a4fcdbc6bf3812a79e3cb49">_showDimensions</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a18bd449dd6e474499a1fb28f20140919">_showPartName</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a85a8213cf1d96c9c1a959a67223971ea">_shadeSubmerged</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ab4f30ac4039457e394a106294150a5eb">_visible</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a86574c4cb5748be1725e4a489270db1a">_mirrorOnScreen</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="comment">// these are &#39;owned&#39; vectors, don&#39;t need to delete individual splines</span></div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a61db759391d5f9d542dfe4551e2406ca">_stations</a>.<a class="code" href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">clear</a>();</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22b335fdb32b04aab580fc1dd90e0481">_buttocks</a>.<a class="code" href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">clear</a>();</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a4708ff9dd3e334c0e774944d25b07947">_waterlines</a>.<a class="code" href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">clear</a>();</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#aff34f25567574603034ffbab8892ad21">_diagonals</a>.<a class="code" href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">clear</a>();</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    </div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#af180b25af9b064398ad1c08747589d78">_maxAreaError</a> = 0.0;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ace1b56968ee580af5a6776bdc5d67d59">_totalAreaError</a> = 0.0;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="comment">// these are set in setRotation</span></div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="comment">//_cos = 0.0;</span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="comment">//_sin = 0.0;</span></div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;}</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#a6d8a53701a952c0a6777e0b0c2ca6127">  102</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a6d8a53701a952c0a6777e0b0c2ca6127">DevelopedPatch::extents</a>(QVector3D&amp; min, QVector3D&amp; max)</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;{</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.size() == 0) {</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        min.setX(-1.0);</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        min.setY(-1.0);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        min.setZ(0.0);</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        max.setX(1.0);</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        max.setY(1.0);</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        max.setZ(0.0);</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.size(); i++) {</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;            QVector3D p = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a9cc5530b21f276b51279a2a46e261203">getPoint</a>(i);</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;            <span class="keywordflow">if</span> (i == 0) {</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;                min = p;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;                max = p;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;            }</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;            <a class="code" href="namespaceShipCAD.html#aa5d3fc63603d716d3e24244049e1e510">MinMax</a>(p, min, max);</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a>) {</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                p = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#af7769b0032f7ca99b0790d1ae75d6d9f">getMirrorPoint</a>(i);</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;                <a class="code" href="namespaceShipCAD.html#aa5d3fc63603d716d3e24244049e1e510">MinMax</a>(p, min, max);</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;            }</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        }</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    }</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;}</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#a18ecaf8785655a33537ae155208b4c17">  127</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a18ecaf8785655a33537ae155208b4c17">DevelopedPatch::maxError</a>()</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;{</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <span class="keywordtype">double</span> err = 0.0;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a997ac5cd92f3479d976f79a4da064d42">_edgeErrors</a>.size(); i++)</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a997ac5cd92f3479d976f79a4da064d42">_edgeErrors</a>[i] &gt; err)</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;            err = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a997ac5cd92f3479d976f79a4da064d42">_edgeErrors</a>[i];</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="keywordflow">return</span> err;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;}</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#a93c223c8eb2a39524cae8f71a863a15a">  136</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a93c223c8eb2a39524cae8f71a863a15a">DevelopedPatch::minError</a>()</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;{</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <span class="keywordtype">double</span> err = 0.0;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a997ac5cd92f3479d976f79a4da064d42">_edgeErrors</a>.size(); i++)</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a997ac5cd92f3479d976f79a4da064d42">_edgeErrors</a>[i] &lt; err)</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;            err = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a997ac5cd92f3479d976f79a4da064d42">_edgeErrors</a>[i];</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="keywordflow">return</span> err;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;}</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#ab91b09750cdae69f7f39b12980191f5e">  145</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ab91b09750cdae69f7f39b12980191f5e">DevelopedPatch::setRotation</a>(<span class="keywordtype">float</span> val)</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;{</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a811b2655727eb8af2e15e9eb48b54e89">_rotation</a> = val;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a3b00c2638e7bf0d281914bb61d7d9717">_cos</a> = cos(<a class="code" href="namespaceShipCAD.html#ac344c080c66b4394cb988cf88c726029">DegToRad</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a811b2655727eb8af2e15e9eb48b54e89">_rotation</a>));</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#aad8361f99a45d4fa04450828e0e177d0">_sin</a> = sin(<a class="code" href="namespaceShipCAD.html#ac344c080c66b4394cb988cf88c726029">DegToRad</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a811b2655727eb8af2e15e9eb48b54e89">_rotation</a>));</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;}</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#a47e52017866102fdc68c2502dd56eb7f">  152</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a47e52017866102fdc68c2502dd56eb7f">DevelopedPatch::setMirrorOnScreen</a>(<span class="keywordtype">bool</span> <span class="keyword">set</span>)</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;{</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <span class="keywordflow">if</span> (<span class="keyword">set</span> != <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a86574c4cb5748be1725e4a489270db1a">_mirrorOnScreen</a> &amp;&amp; !<a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a>) {</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;        <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a86574c4cb5748be1725e4a489270db1a">_mirrorOnScreen</a> = <span class="keyword">set</span>;</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        <span class="keywordtype">float</span> val = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a7fe7981020e5078148b87c9b0bab9075">_min2D</a>.y();</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a7fe7981020e5078148b87c9b0bab9075">_min2D</a>.setY(-<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2d4528866ab65f5e92a808c21134003e">_max2D</a>.y());</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;        <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2d4528866ab65f5e92a808c21134003e">_max2D</a>.setY(-val);</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ab91b09750cdae69f7f39b12980191f5e">setRotation</a>(-<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a811b2655727eb8af2e15e9eb48b54e89">_rotation</a>);</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    }</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;}</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#a14dffbaa2c469eb825bb791c7c7cff42">  163</a></span>&#160;QVector2D <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a14dffbaa2c469eb825bb791c7c7cff42">DevelopedPatch::midPoint</a>()</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;{</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    QVector2D p = 0.5 * <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a7fe7981020e5078148b87c9b0bab9075">_min2D</a> + <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2d4528866ab65f5e92a808c21134003e">_max2D</a>;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keywordflow">return</span> p;</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;}</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;</div><div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#a9cc5530b21f276b51279a2a46e261203">  169</a></span>&#160;QVector3D <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a9cc5530b21f276b51279a2a46e261203">DevelopedPatch::getPoint</a>(<span class="keywordtype">size_t</span> index)</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;{</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    QVector2D p = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>[index].pt2D;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a86574c4cb5748be1725e4a489270db1a">_mirrorOnScreen</a> &amp;&amp; !<a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a>)</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;        p.setY(-p.y());</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#acd5b00b39301b249e3c019674dd67186">convertTo3D</a>(p);</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;}</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;</div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#af7769b0032f7ca99b0790d1ae75d6d9f">  177</a></span>&#160;QVector3D <a class="code" href="classShipCAD_1_1DevelopedPatch.html#af7769b0032f7ca99b0790d1ae75d6d9f">DevelopedPatch::getMirrorPoint</a>(<span class="keywordtype">size_t</span> index)</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;{</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    QVector2D p = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>[index].pt2D;</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    QVector3D tmp(p.x(), p.y(), 0.0);</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    tmp = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a88ff1deb88a87de3e54de5169edb542a">_mirrorPlane</a>.<a class="code" href="classShipCAD_1_1Plane.html#a77073798d61488aeac1ebe95358e3b98">mirror</a>(tmp);</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    p.setX(tmp.x());</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    p.setY(tmp.y());</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a86574c4cb5748be1725e4a489270db1a">_mirrorOnScreen</a> &amp;&amp; !<a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a>)</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;        p.setY(-p.y());</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#acd5b00b39301b249e3c019674dd67186">convertTo3D</a>(p);</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;}</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="comment">// FreeGeometry.pas:5548</span></div><div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#a7ba24420b1e8a1fb98acac3d38f8e37e">  190</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a7ba24420b1e8a1fb98acac3d38f8e37e">DevelopedPatch::draw</a>(<a class="code" href="classShipCAD_1_1Viewport.html">Viewport</a>&amp; <span class="comment">/*vp*/</span>, <a class="code" href="classShipCAD_1_1LineShader.html">LineShader</a>* <span class="comment">/*lineshader*/</span>)</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;{</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    <span class="comment">// TODO</span></div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;}</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div><div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="structPatchIntersection.html">  195</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structPatchIntersection.html">PatchIntersection</a> </div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;{</div><div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="structPatchIntersection.html#ada1d0adcd4dbc07d37a1676ac3c89cf0">  197</a></span>&#160;    QVector3D <a class="code" href="structPatchIntersection.html#ada1d0adcd4dbc07d37a1676ac3c89cf0">point</a>;</div><div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="structPatchIntersection.html#a328e33e74b1d1904db5d69fd512b7d5c">  198</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structPatchIntersection.html#a328e33e74b1d1904db5d69fd512b7d5c">knuckle</a>;</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;};</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="comment">// predicate class to find SubdivisionPoint in PatchPoints vector</span></div><div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="structPatchPointPred.html">  202</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structPatchPointPred.html">PatchPointPred</a></div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;{</div><div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="structPatchPointPred.html#a79fcffc92b3f4411cc5f037a87cbaf2e">  204</a></span>&#160;    <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">ShipCAD::SubdivisionPoint</a>* <a class="code" href="structPatchPointPred.html#a79fcffc92b3f4411cc5f037a87cbaf2e">querypt</a>;</div><div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="structPatchPointPred.html#a5c23625bf138fee4f16dadcb172eece5">  205</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structPatchPointPred.html#a5c23625bf138fee4f16dadcb172eece5">operator()</a>(<span class="keyword">const</span> <a class="code" href="structShipCAD_1_1PatchPoints.html">ShipCAD::PatchPoints</a>&amp; val) {</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;        <span class="keywordflow">return</span> (val.<a class="code" href="structShipCAD_1_1PatchPoints.html#ac69ca0b5e51939979f4654afa3b210a9">pt</a> == querypt);</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    }</div><div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="structPatchPointPred.html#a981ff7bab687bc4c7b7342bb911e0858">  208</a></span>&#160;    <span class="keyword">explicit</span> <a class="code" href="structPatchPointPred.html#a981ff7bab687bc4c7b7342bb911e0858">PatchPointPred</a> (<a class="code" href="classShipCAD_1_1SubdivisionPoint.html">ShipCAD::SubdivisionPoint</a>* pt) : querypt(pt) {}</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;};</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;<span class="comment">// function to find a point in a vector</span></div><div class="line"><a name="l00212"></a><span class="lineno"><a class="line" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">  212</a></span>&#160;<a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> start, <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> end, <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">SubdivisionPoint</a>* pt)</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;{</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <a class="code" href="structPatchPointPred.html">PatchPointPred</a> pred1(pt);</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    <span class="keywordflow">return</span> find_if(start, end, pred1);</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;}</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;<span class="comment">// FreeGeometry.pas:5952</span></div><div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#a71eaddef96ee0edcefb7c15f07c65f7a">  219</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a71eaddef96ee0edcefb7c15f07c65f7a">DevelopedPatch::intersectPlane</a>(<a class="code" href="classShipCAD_1_1Plane.html">Plane</a>&amp; plane, QColor color)</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;{</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <a class="code" href="classPointerVector.html">SplineVector</a> dest(<span class="keyword">false</span>);</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22be478eddc1140e6b800060c6ab513b">_donelist</a>.size(); j++) {</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionFace.html">SubdivisionFace</a>* face = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22be478eddc1140e6b800060c6ab513b">_donelist</a>[j];</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        vector&lt;PatchIntersection&gt; intarray;</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">SubdivisionPoint</a>* p1 = face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>()-1);</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> index1 = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), p1);</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> index2 = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin();</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;        <span class="keywordtype">float</span> side1 = plane.<a class="code" href="classShipCAD_1_1Plane.html#a6851b997a300848fcb37b33407165c44">distance</a>(p1-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a285325115089a1b99be4480bf6079bf1">getCoordinate</a>());</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> k=0; k&lt;face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>(); k++) {</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">SubdivisionPoint</a>* p2 = face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(k);</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;            <span class="keywordtype">float</span> side2 = plane.<a class="code" href="classShipCAD_1_1Plane.html#a6851b997a300848fcb37b33407165c44">distance</a>(p2-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a285325115089a1b99be4480bf6079bf1">getCoordinate</a>());</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;            <span class="keywordflow">if</span> ((side1 &lt; -1e-5 &amp;&amp; side2 &gt; 1e-5) || (side1 &gt; 1e-5 &amp;&amp; side2 &lt; -1e-5)) {</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;                <span class="comment">// regular intersection of edge</span></div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;                <span class="comment">// add the edge to the list</span></div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;                <span class="keywordtype">float</span> parameter = -side1 / (side2 - side1);</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;                QVector2D pt1 = (*index1).pt2D;</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;                index2 = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), p2);</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;                QVector2D tmp = pt1 + parameter * ((*index2).pt2D - pt1);</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;                QVector3D output(tmp.x(), tmp.y(), 0.0);</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;                <a class="code" href="structPatchIntersection.html">PatchIntersection</a> intsect;</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;                intsect.<a class="code" href="structPatchIntersection.html#ada1d0adcd4dbc07d37a1676ac3c89cf0">point</a> = output;</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;                <a class="code" href="classShipCAD_1_1SubdivisionEdge.html">SubdivisionEdge</a>* edge = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a53dbb5c8582ded9fce56d81b3e79116d">getOwner</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionBase.html#a0b9a68b5c7e6a20cf52a465f2387ffba">getOwner</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#adfdeabdc19eb55a7ba4ab0b607207300">edgeExists</a>(p1, p2);</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;                <span class="keywordflow">if</span> (edge != 0)</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;                    intsect.<a class="code" href="structPatchIntersection.html#a328e33e74b1d1904db5d69fd512b7d5c">knuckle</a> = edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#ae649fe7169f64a8e5ede1fbb36a176fa">isCrease</a>();</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;                <span class="keywordflow">else</span></div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;                    intsect.<a class="code" href="structPatchIntersection.html#a328e33e74b1d1904db5d69fd512b7d5c">knuckle</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;                intarray.push_back(intsect);</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;            } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;                <span class="comment">// does the edge lie entirely with the plane?</span></div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;                <span class="keywordflow">if</span> (fabs(side1) &lt;= 1e-5 &amp;&amp; fabs(side2) &lt;= 1e-5) {</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;                } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (fabs(side2) &lt; 1e-5) {</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;                    <a class="code" href="structPatchIntersection.html">PatchIntersection</a> intsect;</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;                    index2 = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), p2);</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;                    QVector2D pt = (*index2).pt2D;</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;                    intsect.<a class="code" href="structPatchIntersection.html#ada1d0adcd4dbc07d37a1676ac3c89cf0">point</a>.setX(pt.x());</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;                    intsect.<a class="code" href="structPatchIntersection.html#ada1d0adcd4dbc07d37a1676ac3c89cf0">point</a>.setY(pt.y());</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;                    intsect.<a class="code" href="structPatchIntersection.html#ada1d0adcd4dbc07d37a1676ac3c89cf0">point</a>.setZ(0.0);</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;                    intsect.<a class="code" href="structPatchIntersection.html#a328e33e74b1d1904db5d69fd512b7d5c">knuckle</a> = p2-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#abc15cbc4faebeb138c1a4a4890a3173b">getVertexType</a>() != <a class="code" href="namespaceShipCAD.html#a03171cc921c53a568b778f5131a60deba11889066d8ae7a44f297f45684bb99de">svRegular</a>;</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                    intarray.push_back(intsect);</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;                }</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;            }</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;            p1 = p2;</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;            side1 = side2;</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;            index1 = index2;</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;        }</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;        <span class="keywordflow">if</span> (intarray.size() &gt; 1) {</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="namespaceShipCAD.html#a438e97b711c6878eba3bf7182e68a3c7">DistPP3D</a>(intarray[0].point, intarray.back().point) &lt; 1e-4)</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;                intarray.pop_back();</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;            <span class="keywordflow">if</span> (intarray.size() &gt; 1) {</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;                <a class="code" href="classShipCAD_1_1Spline.html">Spline</a>* spline = <span class="keyword">new</span> <a class="code" href="classShipCAD_1_1Spline.html">Spline</a>();</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;                spline-&gt;<a class="code" href="classShipCAD_1_1Entity.html#a5e0e5f174d287e807b5409b1aa5704bc">setColor</a>(color);</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;                <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> k=0; k&lt;intarray.size(); k++) {</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;                    spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#ac3d9f4514573be91b316413bf062791a">add</a>(intarray[k].point);</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;                    spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#ad4f075e2e8f1d3ac7c2d22b5be75bbad">setKnuckle</a>(spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa15d52dbfa55ec3b1ec272104a45ebd5">numberOfPoints</a>()-1, intarray[k].knuckle);</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;                }</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;                dest.<a class="code" href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">add</a>(spline);</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;            }</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;        }</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;    }</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    <span class="keywordflow">if</span> (dest.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>() &gt; 1) {</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;        <a class="code" href="namespaceShipCAD.html#a2eddf75f0e29363ab81a3fb0e0211848">JoinSplineSegments</a>(0.01, <span class="keyword">false</span>, dest);</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=dest.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i&gt;=1; i--) {</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;            <a class="code" href="classShipCAD_1_1Spline.html">Spline</a>* spline = dest.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i-1);</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;            <span class="keywordflow">if</span> (spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa15d52dbfa55ec3b1ec272104a45ebd5">numberOfPoints</a>() &gt; 1) {</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;                <span class="keywordtype">float</span> parameter = <a class="code" href="namespaceShipCAD.html#a6f9f5ac15e7e2821bba27ba06827a4e1">SquaredDistPP</a>(spline-&gt;<a class="code" href="classShipCAD_1_1Entity.html#a7c4227afa7a356a667224cfba69a24e5">getMin</a>(), spline-&gt;<a class="code" href="classShipCAD_1_1Entity.html#ad9e95df651ae01a48242604262b051b3">getMax</a>());</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;                <span class="keywordflow">if</span> (parameter &lt; 1e-3) {</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;                    dest.<a class="code" href="classPointerVector.html#acb88f3cb0aa36baaebabc0900bb304e6">del</a>(spline);</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;                    <span class="keyword">delete</span> spline;</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;                }</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;            }</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;        }</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;    }</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;dest.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++) {</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;        <a class="code" href="classShipCAD_1_1Spline.html">Spline</a>* spline = dest.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i);</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;        <span class="keywordflow">if</span> (fabs(plane.<a class="code" href="classShipCAD_1_1Plane.html#a1105f3715d9593c0971e0b0959859a84">a</a>()) &gt; 0.9999)</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a61db759391d5f9d542dfe4551e2406ca">_stations</a>.<a class="code" href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">add</a>(spline);</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (fabs(plane.<a class="code" href="classShipCAD_1_1Plane.html#adf79c9ba86dd3112fc098141195fcac5">b</a>()) &gt; 0.9999)</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22b335fdb32b04aab580fc1dd90e0481">_buttocks</a>.<a class="code" href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">add</a>(spline);</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (fabs(plane.<a class="code" href="classShipCAD_1_1Plane.html#a01b0067ca1a669aef5a8ab85bfce41cc">c</a>()) &gt; 0.9999)</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a4708ff9dd3e334c0e774944d25b07947">_waterlines</a>.<a class="code" href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">add</a>(spline);</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (fabs(plane.<a class="code" href="classShipCAD_1_1Plane.html#adf79c9ba86dd3112fc098141195fcac5">b</a>()) &gt; 0.5 &amp;&amp; fabs(plane.<a class="code" href="classShipCAD_1_1Plane.html#a01b0067ca1a669aef5a8ab85bfce41cc">c</a>()) &gt; 0.5)</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#aff34f25567574603034ffbab8892ad21">_diagonals</a>.<a class="code" href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">add</a>(spline);</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a>) {</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;            <a class="code" href="classShipCAD_1_1Spline.html">Spline</a>* copy(spline);</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;copy-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa15d52dbfa55ec3b1ec272104a45ebd5">numberOfPoints</a>(); j++) {</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;                copy-&gt;<a class="code" href="classShipCAD_1_1Spline.html#ae02af8d5473f952644ac5103d7beebf2">setPoint</a>(j, <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a88ff1deb88a87de3e54de5169edb542a">_mirrorPlane</a>.<a class="code" href="classShipCAD_1_1Plane.html#a77073798d61488aeac1ebe95358e3b98">mirror</a>(copy-&gt;<a class="code" href="classShipCAD_1_1Spline.html#a04a94537b420a8d19dc5f78526e9a825">getPoint</a>(j)));</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;            }</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;            <span class="keywordflow">if</span> (fabs(plane.<a class="code" href="classShipCAD_1_1Plane.html#a1105f3715d9593c0971e0b0959859a84">a</a>()) &gt; 0.9999)</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;                <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a61db759391d5f9d542dfe4551e2406ca">_stations</a>.<a class="code" href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">add</a>(copy);</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (fabs(plane.<a class="code" href="classShipCAD_1_1Plane.html#adf79c9ba86dd3112fc098141195fcac5">b</a>()) &gt; 0.9999)</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;                <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22b335fdb32b04aab580fc1dd90e0481">_buttocks</a>.<a class="code" href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">add</a>(copy);</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (fabs(plane.<a class="code" href="classShipCAD_1_1Plane.html#a01b0067ca1a669aef5a8ab85bfce41cc">c</a>()) &gt; 0.9999)</div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;                <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a4708ff9dd3e334c0e774944d25b07947">_waterlines</a>.<a class="code" href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">add</a>(copy);</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (fabs(plane.<a class="code" href="classShipCAD_1_1Plane.html#adf79c9ba86dd3112fc098141195fcac5">b</a>()) &gt; 0.5 &amp;&amp; fabs(plane.<a class="code" href="classShipCAD_1_1Plane.html#a01b0067ca1a669aef5a8ab85bfce41cc">c</a>()) &gt; 0.5)</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;                <a class="code" href="classShipCAD_1_1DevelopedPatch.html#aff34f25567574603034ffbab8892ad21">_diagonals</a>.<a class="code" href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">add</a>(copy);</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;        }</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    }</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;}</div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;</div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;<span class="comment">// FreeGeometry.pas:6099</span></div><div class="line"><a name="l00321"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#acd5b00b39301b249e3c019674dd67186">  321</a></span>&#160;QVector3D <a class="code" href="classShipCAD_1_1DevelopedPatch.html#acd5b00b39301b249e3c019674dd67186">DevelopedPatch::convertTo3D</a>(QVector2D p)</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;{</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    QVector2D p1(p);</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    QVector2D mid = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a14dffbaa2c469eb825bb791c7c7cff42">midPoint</a>();</div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;    <span class="comment">// translate to origin</span></div><div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;    QVector2D p2 = p - mid;</div><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    <span class="comment">// rotate around origin</span></div><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;    p1.setX(p2.x() * <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a3b00c2638e7bf0d281914bb61d7d9717">_cos</a> - p2.y() * <a class="code" href="classShipCAD_1_1DevelopedPatch.html#aad8361f99a45d4fa04450828e0e177d0">_sin</a>);</div><div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;    p1.setY(p2.x() * <a class="code" href="classShipCAD_1_1DevelopedPatch.html#aad8361f99a45d4fa04450828e0e177d0">_sin</a> + p2.y() * <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a3b00c2638e7bf0d281914bb61d7d9717">_cos</a>);</div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    <span class="comment">// translate back again</span></div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;    <span class="keywordflow">return</span> QVector3D(p1.x() + mid.x() + <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a58a7a720496ce4fe60118e4e6e477fdd">_translation</a>.x(),</div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;                     p1.y() + mid.y() + <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a58a7a720496ce4fe60118e4e6e477fdd">_translation</a>.y(),</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;                     0.0);</div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;}</div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;<span class="comment">// FreeGeometry.pas:6116</span></div><div class="line"><a name="l00337"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#a9ecc3812de9fd0999336c99a71774bbd">  337</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a9ecc3812de9fd0999336c99a71774bbd">DevelopedPatch::saveToDXF</a>(QStringList&amp; strings)</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;{</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;    <span class="comment">// extract edges as polylines</span></div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    vector&lt;SubdivisionEdge*&gt; source(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#ae27386140a170f80afed4565202f522c">_boundaryEdges</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ae27386140a170f80afed4565202f522c">_boundaryEdges</a>.end());</div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;    vector&lt;vector&lt;SubdivisionPoint*&gt; &gt; dest;</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a53dbb5c8582ded9fce56d81b3e79116d">getOwner</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionBase.html#a0b9a68b5c7e6a20cf52a465f2387ffba">getOwner</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#aaed537a17f41b3bec950509299725edf">isolateEdges</a>(source, dest);</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;    <span class="keywordtype">int</span> col = <a class="code" href="namespaceShipCAD.html#a87efc267ae07a84fb1cd55a4562c2907">FindDXFColorIndex</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a53dbb5c8582ded9fce56d81b3e79116d">getOwner</a>()-&gt;getColor());</div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    QString layername = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a53dbb5c8582ded9fce56d81b3e79116d">getOwner</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionLayer.html#a22eacfdf763840d534d45b18b789f8c7">getName</a>();</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;dest.size(); i++) {</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;        vector&lt;SubdivisionPoint*&gt;&amp; src = dest[i];</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;        <span class="comment">// save data as 2D polyline</span></div><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;        strings.push_back(QString(<span class="stringliteral">&quot;0\r\nPOLYLINE&quot;</span>));</div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;        strings.push_back(QString(<span class="stringliteral">&quot;8\r\n%1&quot;</span>).arg(layername));</div><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;        strings.push_back(QString(<span class="stringliteral">&quot;62\r\n%1&quot;</span>).arg(col));</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;        strings.push_back(QString(<span class="stringliteral">&quot;66\r\n1&quot;</span>));</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;src.size(); j++) {</div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;            <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> index = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), src[j]);</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;            QVector3D p3d = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a9cc5530b21f276b51279a2a46e261203">getPoint</a>(index - <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin());</div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;            strings.push_back(QString(<span class="stringliteral">&quot;0\r\nVERTEX&quot;</span>));</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;            strings.push_back(QString(<span class="stringliteral">&quot;8\r\n%1&quot;</span>).arg(layername));</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;            strings.push_back(QString(<span class="stringliteral">&quot;10\r\n%1&quot;</span>).arg(<a class="code" href="namespaceShipCAD.html#a646812cc2b9066dfc47f2ed7e1faa955">Truncate</a>(p3d.x(), 4)));</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;            strings.push_back(QString(<span class="stringliteral">&quot;20\r\n%1&quot;</span>).arg(<a class="code" href="namespaceShipCAD.html#a646812cc2b9066dfc47f2ed7e1faa955">Truncate</a>(p3d.y(), 4)));</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;        }</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;        strings.push_back(QString(<span class="stringliteral">&quot;0\r\nSEQEND&quot;</span>));</div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a>) {</div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;            strings.push_back(QString(<span class="stringliteral">&quot;0\r\nPOLYLINE&quot;</span>));</div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;            strings.push_back(QString(<span class="stringliteral">&quot;8\r\n%1&quot;</span>).arg(layername));</div><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;            strings.push_back(QString(<span class="stringliteral">&quot;62\r\n%1&quot;</span>).arg(col));</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;            strings.push_back(QString(<span class="stringliteral">&quot;66\r\n1&quot;</span>));</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;src.size(); j++) {</div><div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;                <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> index = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), src[j]);</div><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;                QVector3D p3d = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#af7769b0032f7ca99b0790d1ae75d6d9f">getMirrorPoint</a>(index - <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin());</div><div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;                strings.push_back(QString(<span class="stringliteral">&quot;0\r\nVERTEX&quot;</span>));</div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;                strings.push_back(QString(<span class="stringliteral">&quot;8\r\n%1&quot;</span>).arg(layername));</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;                strings.push_back(QString(<span class="stringliteral">&quot;10\r\n%1&quot;</span>).arg(<a class="code" href="namespaceShipCAD.html#a646812cc2b9066dfc47f2ed7e1faa955">Truncate</a>(p3d.x(), 4)));</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;                strings.push_back(QString(<span class="stringliteral">&quot;20\r\n%1&quot;</span>).arg(<a class="code" href="namespaceShipCAD.html#a646812cc2b9066dfc47f2ed7e1faa955">Truncate</a>(p3d.y(), 4)));</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;            }</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;            strings.push_back(QString(<span class="stringliteral">&quot;0\r\nSEQEND&quot;</span>));</div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;        }</div><div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    }</div><div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    </div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#ab970c1f908562c329577a568aa011268">_showStations</a>) {</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a61db759391d5f9d542dfe4551e2406ca">_stations</a>.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++)</div><div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#aba8c1bb34e8690b2192b3cc2c389bad9">exportSpline</a>(strings, <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a61db759391d5f9d542dfe4551e2406ca">_stations</a>.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i), <span class="stringliteral">&quot;stations&quot;</span>);</div><div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;    }</div><div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a647c43e415156bab3ecda6a849d4bb70">_showButtocks</a>) {</div><div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22b335fdb32b04aab580fc1dd90e0481">_buttocks</a>.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++)</div><div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#aba8c1bb34e8690b2192b3cc2c389bad9">exportSpline</a>(strings, <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22b335fdb32b04aab580fc1dd90e0481">_buttocks</a>.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i), <span class="stringliteral">&quot;buttocks&quot;</span>);</div><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;    }</div><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a876f5a294f194b79112c224ed66db35d">_showWaterlines</a>) {</div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a4708ff9dd3e334c0e774944d25b07947">_waterlines</a>.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++)</div><div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#aba8c1bb34e8690b2192b3cc2c389bad9">exportSpline</a>(strings, <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a4708ff9dd3e334c0e774944d25b07947">_waterlines</a>.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i), <span class="stringliteral">&quot;waterlines&quot;</span>);</div><div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;    }</div><div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#aff3046ee214026327f4cfda2733c31c6">_showDiagonals</a>) {</div><div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#aff34f25567574603034ffbab8892ad21">_diagonals</a>.<a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>(); i++)</div><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#aba8c1bb34e8690b2192b3cc2c389bad9">exportSpline</a>(strings, <a class="code" href="classShipCAD_1_1DevelopedPatch.html#aff34f25567574603034ffbab8892ad21">_diagonals</a>.<a class="code" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">get</a>(i), <span class="stringliteral">&quot;diagonals&quot;</span>);</div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;    }</div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;}</div><div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;</div><div class="line"><a name="l00396"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#aba8c1bb34e8690b2192b3cc2c389bad9">  396</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#aba8c1bb34e8690b2192b3cc2c389bad9">DevelopedPatch::exportSpline</a>(QStringList&amp; strings, <a class="code" href="classShipCAD_1_1Spline.html">Spline</a>* spline,</div><div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;                                  <span class="keyword">const</span> QString&amp; layername)</div><div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;{</div><div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;    strings.push_back(QString(<span class="stringliteral">&quot;0\r\nPOLYLINE&quot;</span>));</div><div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;    strings.push_back(QString(<span class="stringliteral">&quot;8\r\n%1&quot;</span>).arg(layername));</div><div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;    strings.push_back(QString(<span class="stringliteral">&quot;62\r\n%1&quot;</span>).arg(<a class="code" href="namespaceShipCAD.html#a87efc267ae07a84fb1cd55a4562c2907">FindDXFColorIndex</a>(spline-&gt;<a class="code" href="classShipCAD_1_1Entity.html#a747f437fa410f5b8b6251967fd3a90aa">getColor</a>())));</div><div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;    strings.push_back(QString(<span class="stringliteral">&quot;66\r\n1&quot;</span>));</div><div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#a58f8c0b2fcc07931a886a85515750e59">getFragments</a>(); i++) {</div><div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;        QVector3D p3d = spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#aa62cf7afa6461bafce7227ec31875219">value</a>(i/static_cast&lt;float&gt;(spline-&gt;<a class="code" href="classShipCAD_1_1Spline.html#a58f8c0b2fcc07931a886a85515750e59">getFragments</a>()));</div><div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;        QVector2D p2d(p3d.x(), p3d.y());</div><div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a86574c4cb5748be1725e4a489270db1a">_mirrorOnScreen</a> &amp;&amp; !<a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a>)</div><div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;            p2d.setY(-p2d.y());</div><div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;        p3d = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#acd5b00b39301b249e3c019674dd67186">convertTo3D</a>(p2d);</div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;        strings.push_back(QString(<span class="stringliteral">&quot;0\r\nVERTEX&quot;</span>));</div><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;        strings.push_back(QString(<span class="stringliteral">&quot;8\r\n%1&quot;</span>).arg(layername));</div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;        strings.push_back(QString(<span class="stringliteral">&quot;10\r\n%1&quot;</span>).arg(<a class="code" href="namespaceShipCAD.html#a646812cc2b9066dfc47f2ed7e1faa955">Truncate</a>(p3d.x(), 4)));</div><div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;        strings.push_back(QString(<span class="stringliteral">&quot;20\r\n%1&quot;</span>).arg(<a class="code" href="namespaceShipCAD.html#a646812cc2b9066dfc47f2ed7e1faa955">Truncate</a>(p3d.y(), 4)));</div><div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;    }</div><div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;    strings.push_back(QString(<span class="stringliteral">&quot;0\r\nSEQEND&quot;</span>));</div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;}</div><div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;</div><div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;<span class="comment">// FreeGeometry.pas:6208</span></div><div class="line"><a name="l00418"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#a0528f08293c1ac8e53e3954c8c9e8585">  418</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0528f08293c1ac8e53e3954c8c9e8585">DevelopedPatch::saveToTextFile</a>(QStringList&amp; strings)</div><div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;{</div><div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;    <span class="comment">// extract edges as polylines</span></div><div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;    vector&lt;SubdivisionEdge*&gt; source(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#ae27386140a170f80afed4565202f522c">_boundaryEdges</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ae27386140a170f80afed4565202f522c">_boundaryEdges</a>.end());</div><div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;    vector&lt;vector&lt;SubdivisionPoint*&gt; &gt; dest;</div><div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a53dbb5c8582ded9fce56d81b3e79116d">getOwner</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionBase.html#a0b9a68b5c7e6a20cf52a465f2387ffba">getOwner</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#aaed537a17f41b3bec950509299725edf">isolateEdges</a>(source, dest);</div><div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;</div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;    <span class="comment">// calculate min, max extents of boundary</span></div><div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;    <span class="comment">// all measurements are referred to the min coordinate</span></div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;    <span class="keywordtype">bool</span> first = <span class="keyword">true</span>;</div><div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;    strings.push_back(<span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;    strings.push_back(QString(<span class="stringliteral">&quot;Boundary coordinates for: %1&quot;</span>).arg(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#ab6918e553621440eef4efd9e4ae6fd2e">name</a>()));</div><div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;    QVector3D min;</div><div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;    QVector3D max;</div><div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;dest.size(); i++) {</div><div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;        vector&lt;SubdivisionPoint*&gt;&amp; src = dest[i];</div><div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;src.size(); j++) {</div><div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;            <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> index = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), src[j]);</div><div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;            QVector3D p3d = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a9cc5530b21f276b51279a2a46e261203">getPoint</a>(index - <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin());</div><div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;            <span class="keywordflow">if</span> (first) {</div><div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;                min = p3d;</div><div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;                max = min;</div><div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;                first = <span class="keyword">false</span>;</div><div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;            } <span class="keywordflow">else</span></div><div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;                <a class="code" href="namespaceShipCAD.html#aa5d3fc63603d716d3e24244049e1e510">MinMax</a>(p3d, min, max);</div><div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a>) {</div><div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;                p3d = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#af7769b0032f7ca99b0790d1ae75d6d9f">getMirrorPoint</a>(index - <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin());</div><div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;                <a class="code" href="namespaceShipCAD.html#aa5d3fc63603d716d3e24244049e1e510">MinMax</a>(p3d, min, max);</div><div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;            }</div><div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;        }</div><div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;    }</div><div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;</div><div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;dest.size(); i++) {</div><div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;        <span class="keywordflow">if</span> (i &gt; 0)</div><div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;            strings.push_back(<span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;        vector&lt;SubdivisionPoint*&gt;&amp; src = dest[i];</div><div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;src.size(); j++) {</div><div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;            <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> index = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), src[j]);</div><div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;            QVector3D p3d = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a9cc5530b21f276b51279a2a46e261203">getPoint</a>(index - <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin());</div><div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;            p3d = p3d - min;</div><div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;            strings.push_back(QString(<span class="stringliteral">&quot;%1 %2 %3&quot;</span>).arg(p3d.x(),7,<span class="charliteral">&#39;g&#39;</span>,3).arg(p3d.y(),7,<span class="charliteral">&#39;g&#39;</span>,3).arg(p3d.z(),7,<span class="charliteral">&#39;g&#39;</span>,3));</div><div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;        }</div><div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a>) {</div><div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;            strings.push_back(<span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;src.size(); j++) {</div><div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;                <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> index = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), src[j]);</div><div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;                QVector3D p3d = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#af7769b0032f7ca99b0790d1ae75d6d9f">getMirrorPoint</a>(index - <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin());</div><div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;                p3d = p3d - min;</div><div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;                strings.push_back(QString(<span class="stringliteral">&quot;%1 %2 %3&quot;</span>).arg(p3d.x(),7,<span class="charliteral">&#39;g&#39;</span>,3).arg(p3d.y(),7,<span class="charliteral">&#39;g&#39;</span>,3).arg(p3d.z(),7,<span class="charliteral">&#39;g&#39;</span>,3));</div><div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;            }</div><div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;        }</div><div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;    }</div><div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;}</div><div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;</div><div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;<span class="comment">// FreeGeometry.pas:6286</span></div><div class="line"><a name="l00473"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#a55470422ecac9d544c811eddc8c3d1c1">  473</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a55470422ecac9d544c811eddc8c3d1c1">DevelopedPatch::unroll</a>(std::vector&lt;SubdivisionControlFace*&gt; controlfaces)</div><div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;{</div><div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;    <span class="comment">// first assemble all points, edges and faces used</span></div><div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;    vector&lt;SubdivisionFace*&gt; faces;</div><div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> k=0; k&lt;controlfaces.size(); k++) {</div><div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionControlFace.html">SubdivisionControlFace</a>* ctrlface = controlfaces[k];</div><div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;        <span class="comment">// copy all the ctrlface child faces</span></div><div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;        faces.insert(faces.end(), ctrlface-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlFace.html#ad20ed50df8ddd91c4aa04eb482ab0fa0">childrenBegin</a>(), ctrlface-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlFace.html#acff2f413eceb70e345640c4519fb50bb">childrenEnd</a>());</div><div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;ctrlface-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlFace.html#a6a79fec036f3d7d52214a280e878a038">numberOfChildren</a>(); i++) {</div><div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionFace.html">SubdivisionFace</a>* child = ctrlface-&gt;<a class="code" href="classShipCAD_1_1SubdivisionControlFace.html#a6f015666ee5e626ce3aed4973f8d12a7">getChild</a>(i);</div><div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">SubdivisionPoint</a>* p1 = child-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(child-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>()-1);</div><div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;child-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>(); j++) {</div><div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;                <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">SubdivisionPoint</a>* p2 = child-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(j);</div><div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;                <span class="comment">// add this point</span></div><div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;                <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> idx = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), p2);</div><div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;                <span class="keywordflow">if</span> (idx == <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end()) {</div><div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;                    <a class="code" href="structShipCAD_1_1PatchPoints.html">PatchPoints</a> pp;</div><div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;                    pp.<a class="code" href="structShipCAD_1_1PatchPoints.html#ac69ca0b5e51939979f4654afa3b210a9">pt</a> = p2;</div><div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;                    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.push_back(pp);</div><div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;                }</div><div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;                <a class="code" href="classShipCAD_1_1SubdivisionEdge.html">SubdivisionEdge</a>* edge = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a53dbb5c8582ded9fce56d81b3e79116d">getOwner</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionBase.html#a0b9a68b5c7e6a20cf52a465f2387ffba">getOwner</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#adfdeabdc19eb55a7ba4ab0b607207300">edgeExists</a>(p1, p2);</div><div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;                <span class="keywordflow">if</span> (edge != 0) {</div><div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;                    vector&lt;SubdivisionEdge*&gt;::iterator eindex = find(</div><div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;                        <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2c7e5cadc05bcf6a66992d7269a9971e">_edges</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2c7e5cadc05bcf6a66992d7269a9971e">_edges</a>.end(), edge);</div><div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;                    <span class="keywordflow">if</span> (eindex == <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2c7e5cadc05bcf6a66992d7269a9971e">_edges</a>.end())</div><div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;                        <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2c7e5cadc05bcf6a66992d7269a9971e">_edges</a>.push_back(edge);</div><div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;                }</div><div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;                p1 = p2;</div><div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;            }</div><div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;        }</div><div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;    }</div><div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;</div><div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;    <span class="comment">// Find all seed faces, which is characterized by the face that it</span></div><div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;    <span class="comment">// has one cornerpoint with (possibly) multiple faces, but only 1</span></div><div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;    <span class="comment">// face is present in the list of faces to be unrolled.</span></div><div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;    vector&lt;SubdivisionFace*&gt; seedfaces;</div><div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.size(); i++) {</div><div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;        <a class="code" href="structShipCAD_1_1PatchPoints.html">PatchPoints</a>&amp; pp = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>[i];</div><div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;        <span class="keywordtype">int</span> n = 0;</div><div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;pp.<a class="code" href="structShipCAD_1_1PatchPoints.html#ac69ca0b5e51939979f4654afa3b210a9">pt</a>-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a474297f7514f867f77ac35e50e9ce6aa">numberOfFaces</a>(); j++) {</div><div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;            <a class="code" href="namespaceShipCAD.html#a14b9ceea38e54192b32764021161d199">subdivface_iter</a> idx = find(faces.begin(), faces.end(), pp.<a class="code" href="structShipCAD_1_1PatchPoints.html#ac69ca0b5e51939979f4654afa3b210a9">pt</a>-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a348be9715813e54ce5895b551d46c67c">getFace</a>(j));</div><div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;            <span class="keywordflow">if</span> (idx != faces.end())</div><div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;                n++;</div><div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;        }</div><div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;        <span class="keywordflow">if</span> (n == 1) {</div><div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> k=0; k&lt;pp.<a class="code" href="structShipCAD_1_1PatchPoints.html#ac69ca0b5e51939979f4654afa3b210a9">pt</a>-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a474297f7514f867f77ac35e50e9ce6aa">numberOfFaces</a>(); k++) {</div><div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;                <a class="code" href="namespaceShipCAD.html#a14b9ceea38e54192b32764021161d199">subdivface_iter</a> idx = find(faces.begin(), faces.end(), pp.<a class="code" href="structShipCAD_1_1PatchPoints.html#ac69ca0b5e51939979f4654afa3b210a9">pt</a>-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a348be9715813e54ce5895b551d46c67c">getFace</a>(k));</div><div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;                <span class="keywordflow">if</span> (idx != faces.end()) {</div><div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;                    seedfaces.push_back(pp.<a class="code" href="structShipCAD_1_1PatchPoints.html#ac69ca0b5e51939979f4654afa3b210a9">pt</a>-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a348be9715813e54ce5895b551d46c67c">getFace</a>(k));</div><div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;                }</div><div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;            }</div><div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;        }</div><div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;    }</div><div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;</div><div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;    <span class="comment">// if NO seedfaces could be found (which should not occur) then</span></div><div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;    <span class="comment">// pick a random one (the one with the largest area)</span></div><div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;    <span class="keywordflow">if</span> (seedfaces.size() == 0) {</div><div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;        <span class="keywordtype">double</span> area;</div><div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;        <span class="keywordtype">double</span> seedarea = 0.0;</div><div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionFace.html">SubdivisionFace</a>* seedface = 0;</div><div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;faces.size(); i++) {</div><div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionFace.html">SubdivisionFace</a>* face = faces[i];</div><div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;            area = face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a1f27fc04bf353dd6295da574fa97c1f8">getArea</a>();</div><div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;            <span class="keywordflow">if</span> (i == 0 || area &gt; seedarea) {</div><div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;                seedface = face;</div><div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;                seedarea = area;</div><div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;            }</div><div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;        }</div><div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;        <span class="keywordflow">if</span> (seedface != 0)</div><div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;            seedfaces.push_back(seedface);</div><div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;    }</div><div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;</div><div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;    <span class="comment">// sort seedfaces</span></div><div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;seedfaces.size(); i++) {</div><div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionFace.html">SubdivisionFace</a>* seedface = seedfaces[i];</div><div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;        <span class="keywordtype">double</span> seedarea = seedface-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a1f27fc04bf353dd6295da574fa97c1f8">getArea</a>();</div><div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=1; j&lt;seedfaces.size(); j++) {</div><div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionFace.html">SubdivisionFace</a>* child = seedfaces[j];</div><div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;            <span class="keywordtype">double</span> area = child-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a1f27fc04bf353dd6295da574fa97c1f8">getArea</a>();</div><div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;            <span class="keywordflow">if</span> (area &lt; seedarea) {</div><div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;                swap(seedfaces[i], seedfaces[j]);</div><div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;                seedarea = area;</div><div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;            }</div><div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;        }</div><div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;    }</div><div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;</div><div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;    <span class="keywordtype">double</span> error;</div><div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;    <a class="code" href="namespaceShipCAD.html#a14b9ceea38e54192b32764021161d199">subdivface_iter</a> error_index;</div><div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;    <span class="keywordflow">if</span> (seedfaces.size() &gt; 0) {</div><div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;        <span class="keywordtype">double</span> maxerror = 1E10;</div><div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;        <span class="keywordtype">size_t</span> bestindex = seedfaces.size();</div><div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;        <span class="keywordtype">size_t</span> i = 0;</div><div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;        <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ae3ef9cf6fd1e85f4739ea676b1a10aac">_numIterations</a> = 0;</div><div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;        <span class="comment">// Keep trying to develop the faces until no error has occured</span></div><div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;        <span class="comment">// and the max. error&lt;1e-7 and the number of iterations&lt;=25</span></div><div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;        <span class="keywordflow">while</span> (i != seedfaces.size()) {</div><div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ad3a9b8115925272b974b003a27a7f4c7">processFaces</a>(seedfaces[i], error, error_index, faces);</div><div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;            ++<a class="code" href="classShipCAD_1_1DevelopedPatch.html#ae3ef9cf6fd1e85f4739ea676b1a10aac">_numIterations</a>;</div><div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;            <span class="keywordflow">if</span> (error_index != <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22be478eddc1140e6b800060c6ab513b">_donelist</a>.end() &amp;&amp; seedfaces.size() &lt; 25) {</div><div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;                <span class="comment">// Add faces where an error occured as new seedfaces, these</span></div><div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;                <span class="comment">// are generally areas where gauss curvature&lt;&gt;0.0</span></div><div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;                <a class="code" href="namespaceShipCAD.html#a14b9ceea38e54192b32764021161d199">subdivface_iter</a> idx = find(</div><div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;                    seedfaces.begin(), seedfaces.end(), *error_index);</div><div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;                <span class="keywordflow">if</span> (idx == seedfaces.end())</div><div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;                    seedfaces.push_back(*error_index);</div><div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;            }</div><div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;            <span class="keywordflow">if</span> (error &lt; maxerror) {</div><div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;                maxerror = error;</div><div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;                bestindex = i;</div><div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;            }</div><div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;            i++;</div><div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;        }</div><div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;</div><div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;        <span class="comment">// restore the best development</span></div><div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;        <span class="keywordflow">if</span> (bestindex &lt; seedfaces.size()) {</div><div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ad3a9b8115925272b974b003a27a7f4c7">processFaces</a>(seedfaces[bestindex], error, error_index, faces);</div><div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;        }</div><div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;</div><div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;        <span class="comment">// assemble all boundaryedges</span></div><div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;        <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ae27386140a170f80afed4565202f522c">_boundaryEdges</a>.clear();</div><div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2c7e5cadc05bcf6a66992d7269a9971e">_edges</a>.size(); i++) {</div><div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionEdge.html">SubdivisionEdge</a>* edge = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2c7e5cadc05bcf6a66992d7269a9971e">_edges</a>[i];</div><div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;            <span class="comment">// only edges with 1 attached face in the faces list are valid</span></div><div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;            <span class="keywordtype">int</span> n = 0;</div><div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#ac4004284f7ab47437b9a1fe7adbde70d">numberOfFaces</a>(); j++) {</div><div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;                <a class="code" href="namespaceShipCAD.html#a14b9ceea38e54192b32764021161d199">subdivface_iter</a> idx = find(faces.begin(), faces.end(), edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#afe3de434f13adfde22f2c209197902de">getFace</a>(j));</div><div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;                <span class="keywordflow">if</span> (idx != faces.end())</div><div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;                    n++;</div><div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;            }</div><div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;            <span class="keywordflow">if</span> (n == 1)</div><div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;                <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ae27386140a170f80afed4565202f522c">_boundaryEdges</a>.push_back(edge);</div><div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;        }</div><div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;</div><div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;        <span class="comment">// calculate min/max coordinates in 2D</span></div><div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.size(); i++) {</div><div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;            <span class="keywordflow">if</span> (i == 0) {</div><div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;                <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a7fe7981020e5078148b87c9b0bab9075">_min2D</a> = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>[i].pt2D;</div><div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;                <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2d4528866ab65f5e92a808c21134003e">_max2D</a> = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a7fe7981020e5078148b87c9b0bab9075">_min2D</a>;</div><div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;            } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;                QVector2D&amp; pt = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>[i].pt2D;</div><div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;                <span class="keywordflow">if</span> (pt.x() &lt; <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a7fe7981020e5078148b87c9b0bab9075">_min2D</a>.x())</div><div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;                    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a7fe7981020e5078148b87c9b0bab9075">_min2D</a>.setX(pt.x());</div><div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;                <span class="keywordflow">if</span> (pt.y() &lt; <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a7fe7981020e5078148b87c9b0bab9075">_min2D</a>.y())</div><div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;                    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a7fe7981020e5078148b87c9b0bab9075">_min2D</a>.setY(pt.y());</div><div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;                <span class="keywordflow">if</span> (pt.x() &gt; <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2d4528866ab65f5e92a808c21134003e">_max2D</a>.x())</div><div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;                    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2d4528866ab65f5e92a808c21134003e">_max2D</a>.setX(pt.x());</div><div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;                <span class="keywordflow">if</span> (pt.y() &gt; <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2d4528866ab65f5e92a808c21134003e">_max2D</a>.y())</div><div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;                    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2d4528866ab65f5e92a808c21134003e">_max2D</a>.setY(pt.y());</div><div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;            }</div><div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;        }</div><div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;</div><div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;        <span class="comment">// finally find optimal rotation angle such that the</span></div><div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;        <span class="comment">// area of the bounding box is minimal</span></div><div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;        <span class="keywordtype">double</span> optarea = 0;</div><div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;        <span class="keywordtype">double</span> optangle = 0;</div><div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;        QVector3D min;</div><div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;        QVector3D max;</div><div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;=180; i++) {</div><div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ab91b09750cdae69f7f39b12980191f5e">setRotation</a>(i / 2.0);</div><div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a6d8a53701a952c0a6777e0b0c2ca6127">extents</a>(min, max);</div><div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;            <span class="keywordtype">double</span> area = (max.x() - min.x()) * (max.y() - min.y());</div><div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;            <span class="keywordflow">if</span> (i == 0 || area &lt; optarea) {</div><div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;                optarea = area;</div><div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;                optangle = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a811b2655727eb8af2e15e9eb48b54e89">_rotation</a>;</div><div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;            }</div><div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;        }</div><div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;        <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ab91b09750cdae69f7f39b12980191f5e">setRotation</a>(optangle);</div><div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;        <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a6d8a53701a952c0a6777e0b0c2ca6127">extents</a>(min, max);</div><div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;        <span class="keywordflow">if</span> ((max.x() - min.x()) &lt; (max.y() - min.y()))</div><div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ab91b09750cdae69f7f39b12980191f5e">setRotation</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a811b2655727eb8af2e15e9eb48b54e89">_rotation</a> - 90);</div><div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a53dbb5c8582ded9fce56d81b3e79116d">getOwner</a>()-&gt;isSymmetric()) {</div><div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;            <span class="comment">// now check if the surface has one of its sides on the centerplane</span></div><div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;            vector&lt;SubdivisionEdge*&gt; tmpedges;</div><div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2c7e5cadc05bcf6a66992d7269a9971e">_edges</a>.size(); j++) {</div><div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;                <a class="code" href="classShipCAD_1_1SubdivisionEdge.html">SubdivisionEdge</a>* edge = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2c7e5cadc05bcf6a66992d7269a9971e">_edges</a>[j];</div><div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;                <span class="keywordflow">if</span> (edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#ac4004284f7ab47437b9a1fe7adbde70d">numberOfFaces</a>() == 1</div><div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;                    &amp;&amp; fabs(edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#aa6e28532f3ecc1610813844dfb385deb">startPoint</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a285325115089a1b99be4480bf6079bf1">getCoordinate</a>().y()) &lt;= 1E-4</div><div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;                    &amp;&amp; fabs(edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#aa65e2e10929c52fd05b6bb90317977dc">endPoint</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a285325115089a1b99be4480bf6079bf1">getCoordinate</a>().y()) &lt;= 1E-4) {</div><div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160;                    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;                    tmpedges.push_back(edge);</div><div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;                }</div><div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;            }</div><div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;            <span class="keywordflow">if</span> (tmpedges.size() &gt; 0) {</div><div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a>) {</div><div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;                    <span class="comment">// Now if all facenormals have a Y-coordinate of approx. 0.0 then</span></div><div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;                    <span class="comment">// this is probably a bottom panel, a deck or a transom</span></div><div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;                    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22be478eddc1140e6b800060c6ab513b">_donelist</a>.size(); j++) {</div><div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;                        <a class="code" href="classShipCAD_1_1SubdivisionFace.html">SubdivisionFace</a>* face = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22be478eddc1140e6b800060c6ab513b">_donelist</a>[j];</div><div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;                        QVector3D normal = face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a94b07cf08781a9d80caf14a8f97df148">getFaceNormal</a>();</div><div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;                        <span class="keywordflow">if</span> (fabs(normal.y()) &gt; 1E-2) {</div><div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;                            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;                            <span class="comment">// y-coordinate of normal is too big, do not attach</span></div><div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160;                            <span class="keywordflow">break</span>;</div><div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;                        }</div><div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;                    }</div><div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;                    <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a>) {</div><div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;                        <span class="comment">// Check if all points on the centerline are</span></div><div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;                        <span class="comment">// developed onto a 2Dline if so, then this</span></div><div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;                        <span class="comment">// line is used to mirror the other half of</span></div><div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;                        <span class="comment">// the layer so it forms 1 whole panel and</span></div><div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;                        <span class="comment">// there is no need to unfold it.</span></div><div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;                        vector&lt;vector&lt;SubdivisionPoint*&gt; &gt; sortededges;</div><div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;                        <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a53dbb5c8582ded9fce56d81b3e79116d">getOwner</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionBase.html#a0b9a68b5c7e6a20cf52a465f2387ffba">getOwner</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#aaed537a17f41b3bec950509299725edf">isolateEdges</a>(tmpedges, sortededges);</div><div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;                        vector&lt;SubdivisionPoint*&gt;&amp; centerline = sortededges.front();</div><div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;                        <span class="keywordflow">if</span> (centerline.size() &gt; 0) {</div><div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;                            <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">SubdivisionPoint</a>* p1 = centerline[0];</div><div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;                            <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">SubdivisionPoint</a>* p2 = centerline.back();</div><div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160;                            <span class="keywordflow">if</span> (p1 == p2) {</div><div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;                                <span class="keywordtype">size_t</span> j = centerline.size();</div><div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160;                                <span class="keywordflow">while</span> (j &gt; 1 &amp;&amp; p1 == p2) {</div><div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;                                    p2 = centerline[j-1];</div><div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;                                    --j;</div><div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;                                }</div><div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;                            }</div><div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;                            <span class="keywordflow">if</span> (p1 != p2) {</div><div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;                                <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> idx = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(),</div><div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;                                                              p1);</div><div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;                                QVector3D p3d1((*idx).pt2D.x(), (*idx).pt2D.y(), 0.0);</div><div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;                                idx = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), p2);</div><div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;                                QVector3D p3d2((*idx).pt2D.x(), (*idx).pt2D.y(), 0.0);</div><div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160;                                <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=1; j&lt;centerline.size(); j++) {</div><div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;                                    <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">SubdivisionPoint</a>* p3 = centerline[j];</div><div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;                                    idx = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), p3);</div><div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;                                    QVector3D p3d3((*idx).pt2D.x(), (*idx).pt2D.y(), 0.0);</div><div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;                                    <span class="keywordtype">double</span> dist = <a class="code" href="namespaceShipCAD.html#a69361fa79b1f818e21306f6266ee45d3">DistancepointToLine</a>(p3d1, p3d2, p3d3);</div><div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;                                    <span class="keywordflow">if</span> (dist &gt; 1E-3) {</div><div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160;                                        <a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160;                                        <span class="keywordflow">break</span>;</div><div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160;                                    }</div><div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;                                }</div><div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160;                                <span class="keywordflow">if</span> (<a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a>) {</div><div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;                                    idx = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), p1);</div><div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;                                    p3d1 = QVector3D((*idx).pt2D.x(), (*idx).pt2D.y(), 0.0);</div><div class="line"><a name="l00707"></a><span class="lineno">  707</span>&#160;                                    idx = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), p2);</div><div class="line"><a name="l00708"></a><span class="lineno">  708</span>&#160;                                    p3d2 = QVector3D((*idx).pt2D.x(), (*idx).pt2D.y(), 0.0);</div><div class="line"><a name="l00709"></a><span class="lineno">  709</span>&#160;                                    QVector3D p3d3(p3d2);</div><div class="line"><a name="l00710"></a><span class="lineno">  710</span>&#160;                                    p3d3.setZ(1.0);</div><div class="line"><a name="l00711"></a><span class="lineno">  711</span>&#160;                                    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">_mirror</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00712"></a><span class="lineno">  712</span>&#160;                                    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a88ff1deb88a87de3e54de5169edb542a">_mirrorPlane</a> = <a class="code" href="classShipCAD_1_1Plane.html">Plane</a>(p3d1, p3d2, p3d3);</div><div class="line"><a name="l00713"></a><span class="lineno">  713</span>&#160;</div><div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160;                                    <span class="comment">// calculate min/max coordinates in 2D of the mirror part</span></div><div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160;                                    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.size(); j++) {</div><div class="line"><a name="l00716"></a><span class="lineno">  716</span>&#160;                                        p3d2 = QVector3D(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>[j].pt-&gt;getCoordinate().x(),</div><div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160;                                                         <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>[j].pt-&gt;getCoordinate().y(),</div><div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160;                                                         0);</div><div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;                                        p3d1 = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a88ff1deb88a87de3e54de5169edb542a">_mirrorPlane</a>.<a class="code" href="classShipCAD_1_1Plane.html#a77073798d61488aeac1ebe95358e3b98">mirror</a>(p3d2);</div><div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;                                        <span class="keywordflow">if</span> (p3d1.x() &lt; <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a7fe7981020e5078148b87c9b0bab9075">_min2D</a>.x())</div><div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;                                            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a7fe7981020e5078148b87c9b0bab9075">_min2D</a>.setX(p3d1.x());</div><div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160;                                        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (p3d1.x() &gt; <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2d4528866ab65f5e92a808c21134003e">_max2D</a>.x())</div><div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160;                                            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2d4528866ab65f5e92a808c21134003e">_max2D</a>.setX(p3d1.x());</div><div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160;                                        <span class="keywordflow">if</span> (p3d1.y() &lt; <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a7fe7981020e5078148b87c9b0bab9075">_min2D</a>.y())</div><div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160;                                            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a7fe7981020e5078148b87c9b0bab9075">_min2D</a>.setY(p3d1.y());</div><div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160;                                        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (p3d1.y() &gt; <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2d4528866ab65f5e92a808c21134003e">_max2D</a>.y())</div><div class="line"><a name="l00727"></a><span class="lineno">  727</span>&#160;                                            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2d4528866ab65f5e92a808c21134003e">_max2D</a>.setY(p3d1.y());</div><div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160;                                    }</div><div class="line"><a name="l00729"></a><span class="lineno">  729</span>&#160;                                }</div><div class="line"><a name="l00730"></a><span class="lineno">  730</span>&#160;                            }</div><div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160;                        }</div><div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160;                    }</div><div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;                }</div><div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;            }</div><div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;        }</div><div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160;</div><div class="line"><a name="l00737"></a><span class="lineno">  737</span>&#160;        <span class="comment">// assemble cornerpoints for dimensioning</span></div><div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.size(); i++) {</div><div class="line"><a name="l00739"></a><span class="lineno">  739</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">SubdivisionPoint</a>* p1 = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>[i].pt;</div><div class="line"><a name="l00740"></a><span class="lineno">  740</span>&#160;            <span class="keywordtype">int</span> n = 0;</div><div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;p1-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a474297f7514f867f77ac35e50e9ce6aa">numberOfFaces</a>(); j++) {</div><div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160;                <a class="code" href="namespaceShipCAD.html#a14b9ceea38e54192b32764021161d199">subdivface_iter</a> idx = find(faces.begin(), faces.end(), p1-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a348be9715813e54ce5895b551d46c67c">getFace</a>(j));</div><div class="line"><a name="l00743"></a><span class="lineno">  743</span>&#160;                <span class="keywordflow">if</span> (idx != faces.end())</div><div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160;                    n++;</div><div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160;             }</div><div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;            <span class="keywordflow">if</span> (n == 1 || p1-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#abc15cbc4faebeb138c1a4a4890a3173b">getVertexType</a>() == <a class="code" href="namespaceShipCAD.html#a03171cc921c53a568b778f5131a60deba8d802131f84b0a9edf8a419eded859d0">svCorner</a>)</div><div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;                <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ae668e0bc0c43821a883881c752fd4725">_corners</a>.push_back(p1);</div><div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160;        }</div><div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160;    } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160;        <span class="comment">// message dialog &#39;seed could not be found&#39;</span></div><div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;    }</div><div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160;}</div><div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;</div><div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160;<span class="comment">// Computes the crossproduct of three points</span></div><div class="line"><a name="l00755"></a><span class="lineno">  755</span>&#160;<span class="comment">// Returns whether their internal angle is clockwise or counter-clockwise.</span></div><div class="line"><a name="l00756"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#a3210c1289d04ec78d1a13217b5ea742a">  756</a></span>&#160;<a class="code" href="namespaceShipCAD.html#a22a4489ec7a6505c3c30fa7562175ca4">PolygonOrientation</a> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a3210c1289d04ec78d1a13217b5ea742a">DevelopedPatch::crossproduct</a>(<span class="keyword">const</span> QVector2D&amp; p1, <span class="keyword">const</span> QVector2D&amp; p2,</div><div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160;                                                <span class="keyword">const</span> QVector2D&amp; p3)</div><div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;{</div><div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160;    <a class="code" href="namespaceShipCAD.html#a22a4489ec7a6505c3c30fa7562175ca4">PolygonOrientation</a> result = <a class="code" href="namespaceShipCAD.html#a22a4489ec7a6505c3c30fa7562175ca4a01f1428a8463fbd20d80a779e70b39cd">poCCW</a>;</div><div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;    <span class="keywordtype">double</span> tmp = (p2.x() - p1.x()) * (p3.y() - p2.y()) - (p2.y() - p1.y()) * (p3.x() - p2.x());</div><div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;    <span class="keywordflow">if</span> (tmp &gt;= 0)</div><div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;        result = <a class="code" href="namespaceShipCAD.html#a22a4489ec7a6505c3c30fa7562175ca4a01f1428a8463fbd20d80a779e70b39cd">poCCW</a>;</div><div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (tmp &lt; 0)</div><div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;        result = <a class="code" href="namespaceShipCAD.html#a22a4489ec7a6505c3c30fa7562175ca4a785617c870ff5f0a2321ca2f6542aa7b">poCW</a>;</div><div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;    <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;}</div><div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;    </div><div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;<span class="comment">// Calculates the third point of a triangle when the length of its</span></div><div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;<span class="comment">// three sides and two coordinates are known</span></div><div class="line"><a name="l00770"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#aaa57f091d14d72af632b838a1cfd39c0">  770</a></span>&#160;QVector2D <a class="code" href="classShipCAD_1_1DevelopedPatch.html#aaa57f091d14d72af632b838a1cfd39c0">DevelopedPatch::calculateTriangle</a>(<span class="keywordtype">double</span> a, <span class="keywordtype">double</span> b, <span class="keywordtype">double</span> c,</div><div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;                                            <span class="keyword">const</span> QVector2D&amp; p1, <span class="keyword">const</span> QVector2D&amp; p2)</div><div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;{</div><div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;    <span class="keywordtype">double</span> fie1, fie2, fie3, p;</div><div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;    </div><div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160;    <span class="keywordflow">if</span> (fabs(p2.x() - p1.x()) &lt;= 1E-6) {</div><div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;        <span class="keywordflow">if</span> (p2.x() == p1.x()) {</div><div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;            <span class="keywordflow">if</span> (p2.y() &gt; p1.y())</div><div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;                fie1 = 0.5 * M_PI;</div><div class="line"><a name="l00779"></a><span class="lineno">  779</span>&#160;            <span class="keywordflow">else</span></div><div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160;                fie1 = -0.5 * M_PI;</div><div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160;        } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160;            fie1 = atan((p2.y() - p1.y()) / (p2.x() - p1.x()));</div><div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;        }</div><div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160;    } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;        fie1 = atan((p2.y() - p1.y()) / (p2.x() - p1.x()));</div><div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;    }</div><div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;    <span class="keywordflow">if</span> (fie1 &lt; 0 &amp;&amp; p2.y() &gt; p1.y())</div><div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160;        fie1 += M_PI;</div><div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160;    <span class="keywordflow">if</span> (fie1 &gt; 0 &amp;&amp; p2.y() &lt; p1.y())</div><div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;        fie1 += M_PI;</div><div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;    <span class="keywordflow">if</span> (b * c != 0)</div><div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160;        p = (b*b + c*c - a*a) / (2*b*c);</div><div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;        p = <a class="code" href="namespaceShipCAD.html#ad4bf48489d173fd29503cd9b511f52e9">Sign</a>(b*b + c*c - a*a);</div><div class="line"><a name="l00795"></a><span class="lineno">  795</span>&#160;    <span class="keywordflow">if</span> (p &gt; 1)</div><div class="line"><a name="l00796"></a><span class="lineno">  796</span>&#160;        p = 1;</div><div class="line"><a name="l00797"></a><span class="lineno">  797</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (p &lt; -1)</div><div class="line"><a name="l00798"></a><span class="lineno">  798</span>&#160;        p = -1;</div><div class="line"><a name="l00799"></a><span class="lineno">  799</span>&#160;    <span class="keywordflow">if</span> (p == 0) {</div><div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160;        fie2 = 0.5 * M_PI;</div><div class="line"><a name="l00801"></a><span class="lineno">  801</span>&#160;    } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;        fie2 = atan(sqrt(1 - p*p)/p);</div><div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160;    }</div><div class="line"><a name="l00804"></a><span class="lineno">  804</span>&#160;    <span class="keywordflow">if</span> (p &lt; 0)</div><div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;        fie2 = M_PI - fabs(fie2);</div><div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160;    fie3 = fie1 - fie2;</div><div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160;    <span class="keywordflow">return</span> QVector2D(b*cos(fie3) + p1.x(), b*sin(fie3) + p1.y());</div><div class="line"><a name="l00808"></a><span class="lineno">  808</span>&#160;}</div><div class="line"><a name="l00809"></a><span class="lineno">  809</span>&#160;</div><div class="line"><a name="l00810"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#a3c4527d0a0fcafff2b506aabef67a43e">  810</a></span>&#160;QVector2D <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a3c4527d0a0fcafff2b506aabef67a43e">DevelopedPatch::calculateTriangle2</a>(<span class="keywordtype">double</span> a, <span class="keywordtype">double</span> b, <span class="keywordtype">double</span> c,</div><div class="line"><a name="l00811"></a><span class="lineno">  811</span>&#160;                                             <span class="keyword">const</span> QVector2D&amp; p1, <span class="keyword">const</span> QVector2D&amp; p2)</div><div class="line"><a name="l00812"></a><span class="lineno">  812</span>&#160;{</div><div class="line"><a name="l00813"></a><span class="lineno">  813</span>&#160;    <span class="keywordtype">double</span> fie1, fie2, beta, tmp;</div><div class="line"><a name="l00814"></a><span class="lineno">  814</span>&#160;    </div><div class="line"><a name="l00815"></a><span class="lineno">  815</span>&#160;    <span class="keywordflow">if</span> (fabs(p2.x() - p1.x()) &lt;= 1E-6) {</div><div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;        <span class="keywordflow">if</span> (p2.x() == p1.x()) {</div><div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160;            <span class="keywordflow">if</span> (p2.y() &gt; p1.y())</div><div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160;                fie1 = 0.5 * M_PI;</div><div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;            <span class="keywordflow">else</span></div><div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160;                fie1 = -0.5 * M_PI;</div><div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;        } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160;            fie1 = atan((p2.y() - p1.y()) / (p2.x() - p1.x()));</div><div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160;        }</div><div class="line"><a name="l00824"></a><span class="lineno">  824</span>&#160;    } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00825"></a><span class="lineno">  825</span>&#160;        fie1 = atan((p2.y() - p1.y()) / (p2.x() - p1.x()));</div><div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;    }</div><div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;    <span class="keywordflow">if</span> (fie1 &lt; 0 &amp;&amp; p2.y() &gt; p1.y())</div><div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160;        fie1 += M_PI;</div><div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160;    <span class="keywordflow">if</span> (fie1 &gt; 0 &amp;&amp; p2.y() &lt; p1.y())</div><div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160;        fie1 += M_PI;</div><div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160;    <span class="keywordflow">if</span> (2 * a * c == 0) {</div><div class="line"><a name="l00832"></a><span class="lineno">  832</span>&#160;        <span class="keywordflow">if</span> (a == 0)</div><div class="line"><a name="l00833"></a><span class="lineno">  833</span>&#160;            a = 1E-7;</div><div class="line"><a name="l00834"></a><span class="lineno">  834</span>&#160;        <span class="keywordflow">if</span> (c == 0)</div><div class="line"><a name="l00835"></a><span class="lineno">  835</span>&#160;            c = 1E-7;</div><div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;    }</div><div class="line"><a name="l00837"></a><span class="lineno">  837</span>&#160;    tmp = (a*a + c*c - b*b) / (2*a*c);</div><div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160;    <span class="keywordflow">if</span> (tmp &gt; 1)</div><div class="line"><a name="l00839"></a><span class="lineno">  839</span>&#160;        tmp = 1.0;</div><div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (tmp &lt; -1)</div><div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160;        tmp = -1.0;</div><div class="line"><a name="l00842"></a><span class="lineno">  842</span>&#160;    beta = acos(tmp);</div><div class="line"><a name="l00843"></a><span class="lineno">  843</span>&#160;    fie2 = fie1 + beta;</div><div class="line"><a name="l00844"></a><span class="lineno">  844</span>&#160;    <span class="keywordflow">return</span> QVector2D(c*cos(fie2) + p1.x(), c*sin(fie2) + p1.y());</div><div class="line"><a name="l00845"></a><span class="lineno">  845</span>&#160;}</div><div class="line"><a name="l00846"></a><span class="lineno">  846</span>&#160;</div><div class="line"><a name="l00847"></a><span class="lineno">  847</span>&#160;<span class="comment">// FreeGeometry.pas:6408</span></div><div class="line"><a name="l00848"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#af5563e813910e11a78126223a6635faf">  848</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#af5563e813910e11a78126223a6635faf">DevelopedPatch::unroll2D</a>(<a class="code" href="classShipCAD_1_1SubdivisionFace.html">SubdivisionFace</a>* face, <span class="keywordtype">bool</span>&amp; firstface, <span class="keywordtype">bool</span>&amp; error,</div><div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;                              <a class="code" href="namespaceShipCAD.html#a22a4489ec7a6505c3c30fa7562175ca4">PolygonOrientation</a>&amp; orientation)</div><div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;{</div><div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160;    error = <span class="keyword">false</span>;</div><div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;    <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> index1;</div><div class="line"><a name="l00853"></a><span class="lineno">  853</span>&#160;    <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> index2;</div><div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160;    <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> index3;</div><div class="line"><a name="l00855"></a><span class="lineno">  855</span>&#160;    </div><div class="line"><a name="l00856"></a><span class="lineno">  856</span>&#160;    vector&lt;bool&gt; indices;</div><div class="line"><a name="l00857"></a><span class="lineno">  857</span>&#160;    indices.reserve(face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>());</div><div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>(); i++) {</div><div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160;        index1 = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(i));</div><div class="line"><a name="l00860"></a><span class="lineno">  860</span>&#160;        indices.push_back((*index1).processed);</div><div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160;    }</div><div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;    <span class="comment">// find two successive calculated points</span></div><div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160;    <span class="keywordtype">size_t</span> s = face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>();</div><div class="line"><a name="l00864"></a><span class="lineno">  864</span>&#160;    <span class="keywordtype">size_t</span> e = s;</div><div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>(); i++) {</div><div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160;        <span class="keywordflow">if</span> (indices[i]) {</div><div class="line"><a name="l00867"></a><span class="lineno">  867</span>&#160;            <span class="keywordtype">size_t</span> ind1 = (i + 1) % face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>();</div><div class="line"><a name="l00868"></a><span class="lineno">  868</span>&#160;            <span class="keywordflow">if</span> (indices[ind1]) {</div><div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160;                s = i;</div><div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;                e = ind1;</div><div class="line"><a name="l00871"></a><span class="lineno">  871</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00872"></a><span class="lineno">  872</span>&#160;            }</div><div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160;        }</div><div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160;    }</div><div class="line"><a name="l00875"></a><span class="lineno">  875</span>&#160;    <span class="keywordflow">if</span> (s != face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>() &amp;&amp; e != face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>()) {</div><div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=2; i&lt;face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>(); i++) {</div><div class="line"><a name="l00877"></a><span class="lineno">  877</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">SubdivisionPoint</a>* p1 = face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(s);</div><div class="line"><a name="l00878"></a><span class="lineno">  878</span>&#160;            index1 = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), p1);</div><div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160;            e = (s + i - 1) % face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>();</div><div class="line"><a name="l00880"></a><span class="lineno">  880</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">SubdivisionPoint</a>* p2 = face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(e);</div><div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160;            index2 = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), p2);</div><div class="line"><a name="l00882"></a><span class="lineno">  882</span>&#160;            e = (s + i) % face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>();</div><div class="line"><a name="l00883"></a><span class="lineno">  883</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">SubdivisionPoint</a>* p3 = face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(e);</div><div class="line"><a name="l00884"></a><span class="lineno">  884</span>&#160;            index3 = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), p3);</div><div class="line"><a name="l00885"></a><span class="lineno">  885</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ac9cab6969a888b9a1833271ce1fb3dde">processTriangle</a>(index1, index2, index3, firstface, error, orientation);</div><div class="line"><a name="l00886"></a><span class="lineno">  886</span>&#160;        }</div><div class="line"><a name="l00887"></a><span class="lineno">  887</span>&#160;    } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00888"></a><span class="lineno">  888</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=2; i&lt;face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>(); i++) {</div><div class="line"><a name="l00889"></a><span class="lineno">  889</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">SubdivisionPoint</a>* p1 = face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(0);</div><div class="line"><a name="l00890"></a><span class="lineno">  890</span>&#160;            index1 = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), p1);</div><div class="line"><a name="l00891"></a><span class="lineno">  891</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">SubdivisionPoint</a>* p2 = face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(i-1);</div><div class="line"><a name="l00892"></a><span class="lineno">  892</span>&#160;            index2 = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), p2);</div><div class="line"><a name="l00893"></a><span class="lineno">  893</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">SubdivisionPoint</a>* p3 = face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(i);</div><div class="line"><a name="l00894"></a><span class="lineno">  894</span>&#160;            index3 = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), p3);</div><div class="line"><a name="l00895"></a><span class="lineno">  895</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ac9cab6969a888b9a1833271ce1fb3dde">processTriangle</a>(index1, index2, index3, firstface, error, orientation);</div><div class="line"><a name="l00896"></a><span class="lineno">  896</span>&#160;        }</div><div class="line"><a name="l00897"></a><span class="lineno">  897</span>&#160;    }</div><div class="line"><a name="l00898"></a><span class="lineno">  898</span>&#160;}</div><div class="line"><a name="l00899"></a><span class="lineno">  899</span>&#160;</div><div class="line"><a name="l00900"></a><span class="lineno">  900</span>&#160;<span class="comment">// FreeGeometry.pas:6416</span></div><div class="line"><a name="l00901"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#ac9cab6969a888b9a1833271ce1fb3dde">  901</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ac9cab6969a888b9a1833271ce1fb3dde">DevelopedPatch::processTriangle</a>(<a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> ind1, <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> ind2, <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> ind3,</div><div class="line"><a name="l00902"></a><span class="lineno">  902</span>&#160;                                     <span class="keywordtype">bool</span>&amp; first, <span class="keywordtype">bool</span>&amp; error,</div><div class="line"><a name="l00903"></a><span class="lineno">  903</span>&#160;                                     <a class="code" href="namespaceShipCAD.html#a22a4489ec7a6505c3c30fa7562175ca4">PolygonOrientation</a>&amp; orientation)</div><div class="line"><a name="l00904"></a><span class="lineno">  904</span>&#160;{</div><div class="line"><a name="l00905"></a><span class="lineno">  905</span>&#160;    <span class="keywordtype">double</span> a = (*ind1).pt-&gt;getCoordinate().distanceToPoint((*ind2).pt-&gt;getCoordinate());</div><div class="line"><a name="l00906"></a><span class="lineno">  906</span>&#160;    <span class="keywordtype">double</span> b = (*ind2).pt-&gt;getCoordinate().distanceToPoint((*ind3).pt-&gt;getCoordinate());</div><div class="line"><a name="l00907"></a><span class="lineno">  907</span>&#160;    <span class="keywordtype">double</span> c = (*ind3).pt-&gt;getCoordinate().distanceToPoint((*ind1).pt-&gt;getCoordinate());</div><div class="line"><a name="l00908"></a><span class="lineno">  908</span>&#160;</div><div class="line"><a name="l00909"></a><span class="lineno">  909</span>&#160;    QVector2D p1_2d, p2_2d, p3_2d;</div><div class="line"><a name="l00910"></a><span class="lineno">  910</span>&#160;</div><div class="line"><a name="l00911"></a><span class="lineno">  911</span>&#160;    <span class="keywordflow">if</span> (!(*ind1).processed &amp;&amp; !(*ind2).processed &amp;&amp; !(*ind3).processed) {</div><div class="line"><a name="l00912"></a><span class="lineno">  912</span>&#160;        <span class="comment">// first face, calculate p1, p2, and p3</span></div><div class="line"><a name="l00913"></a><span class="lineno">  913</span>&#160;        p1_2d.setX((*ind1).pt-&gt;getCoordinate().x());</div><div class="line"><a name="l00914"></a><span class="lineno">  914</span>&#160;        p1_2d.setY((*ind1).pt-&gt;getCoordinate().y());</div><div class="line"><a name="l00915"></a><span class="lineno">  915</span>&#160;        p2_2d = p1_2d;</div><div class="line"><a name="l00916"></a><span class="lineno">  916</span>&#160;        p2_2d.setY(p2_2d.y() + a);</div><div class="line"><a name="l00917"></a><span class="lineno">  917</span>&#160;        (*ind1).processed = <span class="keyword">true</span>;</div><div class="line"><a name="l00918"></a><span class="lineno">  918</span>&#160;        (*ind1).pt2D = p1_2d;</div><div class="line"><a name="l00919"></a><span class="lineno">  919</span>&#160;        (*ind2).processed = <span class="keyword">true</span>;</div><div class="line"><a name="l00920"></a><span class="lineno">  920</span>&#160;        (*ind2).pt2D = p2_2d;</div><div class="line"><a name="l00921"></a><span class="lineno">  921</span>&#160;    }</div><div class="line"><a name="l00922"></a><span class="lineno">  922</span>&#160;    p1_2d = (*ind1).pt2D;</div><div class="line"><a name="l00923"></a><span class="lineno">  923</span>&#160;    p2_2d = (*ind2).pt2D;</div><div class="line"><a name="l00924"></a><span class="lineno">  924</span>&#160;    p3_2d = (*ind3).pt2D;</div><div class="line"><a name="l00925"></a><span class="lineno">  925</span>&#160;    <span class="keywordflow">if</span> ((*ind1).processed &amp;&amp; (*ind2).processed &amp;&amp; !(*ind3).processed) {</div><div class="line"><a name="l00926"></a><span class="lineno">  926</span>&#160;        <span class="comment">// calculate position of p3</span></div><div class="line"><a name="l00927"></a><span class="lineno">  927</span>&#160;        a = p1_2d.distanceToPoint(p2_2d);</div><div class="line"><a name="l00928"></a><span class="lineno">  928</span>&#160;        <span class="comment">// p3_2d = calculateTriangle(b,c,a,p1_2d, p2_2d)</span></div><div class="line"><a name="l00929"></a><span class="lineno">  929</span>&#160;        p3_2d = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a3c4527d0a0fcafff2b506aabef67a43e">calculateTriangle2</a>(a, b, c, p1_2d, p2_2d);</div><div class="line"><a name="l00930"></a><span class="lineno">  930</span>&#160;        <span class="keywordflow">if</span> (first) {</div><div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;            orientation = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a3210c1289d04ec78d1a13217b5ea742a">crossproduct</a>(p1_2d, p2_2d, p3_2d);</div><div class="line"><a name="l00932"></a><span class="lineno">  932</span>&#160;            first = <span class="keyword">false</span>;</div><div class="line"><a name="l00933"></a><span class="lineno">  933</span>&#160;        } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160;            <a class="code" href="namespaceShipCAD.html#a22a4489ec7a6505c3c30fa7562175ca4">PolygonOrientation</a> winding = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a3210c1289d04ec78d1a13217b5ea742a">crossproduct</a>(p1_2d, p2_2d, p3_2d);</div><div class="line"><a name="l00935"></a><span class="lineno">  935</span>&#160;            <span class="keywordflow">if</span> (winding != orientation) {</div><div class="line"><a name="l00936"></a><span class="lineno">  936</span>&#160;                <span class="keywordflow">if</span> (!error)</div><div class="line"><a name="l00937"></a><span class="lineno">  937</span>&#160;                    error = <span class="keyword">true</span>;</div><div class="line"><a name="l00938"></a><span class="lineno">  938</span>&#160;            }</div><div class="line"><a name="l00939"></a><span class="lineno">  939</span>&#160;        }</div><div class="line"><a name="l00940"></a><span class="lineno">  940</span>&#160;        (*ind3).pt2D = p3_2d;</div><div class="line"><a name="l00941"></a><span class="lineno">  941</span>&#160;        (*ind3).processed = <span class="keyword">true</span>;</div><div class="line"><a name="l00942"></a><span class="lineno">  942</span>&#160;    }</div><div class="line"><a name="l00943"></a><span class="lineno">  943</span>&#160;}</div><div class="line"><a name="l00944"></a><span class="lineno">  944</span>&#160;</div><div class="line"><a name="l00945"></a><span class="lineno">  945</span>&#160;<span class="comment">// FreeGeometry.pas:6520</span></div><div class="line"><a name="l00946"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#abd307ac53a6a3ab54b17c646d6f0bad5">  946</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#abd307ac53a6a3ab54b17c646d6f0bad5">DevelopedPatch::triangleArea</a>(<span class="keyword">const</span> QVector2D&amp; p1, <span class="keyword">const</span> QVector2D&amp; p2,</div><div class="line"><a name="l00947"></a><span class="lineno">  947</span>&#160;                                    <span class="keyword">const</span> QVector2D&amp; p3)</div><div class="line"><a name="l00948"></a><span class="lineno">  948</span>&#160;{</div><div class="line"><a name="l00949"></a><span class="lineno">  949</span>&#160;    <span class="keywordflow">return</span> 0.5 * ((p1.x() - p2.x()) * (p1.y() + p2.y())</div><div class="line"><a name="l00950"></a><span class="lineno">  950</span>&#160;                  + (p2.x() - p3.x()) * (p2.y() + p3.y())</div><div class="line"><a name="l00951"></a><span class="lineno">  951</span>&#160;                  + (p3.x() - p1.x()) * (p3.y() + p1.y()));</div><div class="line"><a name="l00952"></a><span class="lineno">  952</span>&#160;    </div><div class="line"><a name="l00953"></a><span class="lineno">  953</span>&#160;}</div><div class="line"><a name="l00954"></a><span class="lineno">  954</span>&#160;</div><div class="line"><a name="l00955"></a><span class="lineno">  955</span>&#160;<span class="comment">// FreeGeometry.pas:6525</span></div><div class="line"><a name="l00956"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#ad3a9b8115925272b974b003a27a7f4c7">  956</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ad3a9b8115925272b974b003a27a7f4c7">DevelopedPatch::processFaces</a>(<a class="code" href="classShipCAD_1_1SubdivisionFace.html">SubdivisionFace</a>* seedface, <span class="keywordtype">double</span>&amp; maxerror,</div><div class="line"><a name="l00957"></a><span class="lineno">  957</span>&#160;                                  <a class="code" href="namespaceShipCAD.html#a14b9ceea38e54192b32764021161d199">subdivface_iter</a>&amp; error_index,</div><div class="line"><a name="l00958"></a><span class="lineno">  958</span>&#160;                                  vector&lt;SubdivisionFace*&gt;&amp; faces)</div><div class="line"><a name="l00959"></a><span class="lineno">  959</span>&#160;{</div><div class="line"><a name="l00960"></a><span class="lineno">  960</span>&#160;    maxerror = 0.0;</div><div class="line"><a name="l00961"></a><span class="lineno">  961</span>&#160;    <span class="keywordtype">double</span> totalerror = 0.0;</div><div class="line"><a name="l00962"></a><span class="lineno">  962</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#af180b25af9b064398ad1c08747589d78">_maxAreaError</a> = 0.0;</div><div class="line"><a name="l00963"></a><span class="lineno">  963</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ace1b56968ee580af5a6776bdc5d67d59">_totalAreaError</a> = 0.0;</div><div class="line"><a name="l00964"></a><span class="lineno">  964</span>&#160;    <span class="keywordtype">bool</span> founderror = <span class="keyword">false</span>;</div><div class="line"><a name="l00965"></a><span class="lineno">  965</span>&#160;    <span class="comment">//error_index = _donelist.end();</span></div><div class="line"><a name="l00966"></a><span class="lineno">  966</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a997ac5cd92f3479d976f79a4da064d42">_edgeErrors</a> = vector&lt;double&gt;(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2c7e5cadc05bcf6a66992d7269a9971e">_edges</a>.size(), 0.0);</div><div class="line"><a name="l00967"></a><span class="lineno">  967</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.size(); i++) {</div><div class="line"><a name="l00968"></a><span class="lineno">  968</span>&#160;        <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>[i].processed = <span class="keyword">false</span>;</div><div class="line"><a name="l00969"></a><span class="lineno">  969</span>&#160;        <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>[i].pt2D = <a class="code" href="namespaceShipCAD.html#ab47218dccdf4c94d5989b2e5b13d8603">ZERO2</a>;</div><div class="line"><a name="l00970"></a><span class="lineno">  970</span>&#160;    }</div><div class="line"><a name="l00971"></a><span class="lineno">  971</span>&#160;    vector&lt;SubdivisionFace*&gt; todo(faces.begin(), faces.end());</div><div class="line"><a name="l00972"></a><span class="lineno">  972</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22be478eddc1140e6b800060c6ab513b">_donelist</a>.clear();</div><div class="line"><a name="l00973"></a><span class="lineno">  973</span>&#160;    <span class="keywordtype">bool</span> temp = <span class="keyword">false</span>;</div><div class="line"><a name="l00974"></a><span class="lineno">  974</span>&#160;    <a class="code" href="namespaceShipCAD.html#a22a4489ec7a6505c3c30fa7562175ca4">PolygonOrientation</a> orientation = <a class="code" href="namespaceShipCAD.html#a22a4489ec7a6505c3c30fa7562175ca4a01f1428a8463fbd20d80a779e70b39cd">poCCW</a>;</div><div class="line"><a name="l00975"></a><span class="lineno">  975</span>&#160;    <span class="keywordflow">while</span> (todo.size() &gt; 0) {</div><div class="line"><a name="l00976"></a><span class="lineno">  976</span>&#160;        <span class="keywordflow">if</span> (seedface == 0)</div><div class="line"><a name="l00977"></a><span class="lineno">  977</span>&#160;            <span class="comment">// find a new seedface, this layer has multiple areas</span></div><div class="line"><a name="l00978"></a><span class="lineno">  978</span>&#160;            seedface = todo.front();</div><div class="line"><a name="l00979"></a><span class="lineno">  979</span>&#160;        <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22be478eddc1140e6b800060c6ab513b">_donelist</a>.push_back(seedface);</div><div class="line"><a name="l00980"></a><span class="lineno">  980</span>&#160;        <a class="code" href="namespaceShipCAD.html#a14b9ceea38e54192b32764021161d199">subdivface_iter</a> index = find(todo.begin(), todo.end(), seedface);</div><div class="line"><a name="l00981"></a><span class="lineno">  981</span>&#160;        <span class="keywordflow">if</span> (index != todo.end())</div><div class="line"><a name="l00982"></a><span class="lineno">  982</span>&#160;            todo.erase(index);</div><div class="line"><a name="l00983"></a><span class="lineno">  983</span>&#160;        <span class="keywordtype">bool</span> firstface = <span class="keyword">true</span>;</div><div class="line"><a name="l00984"></a><span class="lineno">  984</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22be478eddc1140e6b800060c6ab513b">_donelist</a>.size(); i++) {</div><div class="line"><a name="l00985"></a><span class="lineno">  985</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionFace.html">SubdivisionFace</a>* face = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22be478eddc1140e6b800060c6ab513b">_donelist</a>[i];</div><div class="line"><a name="l00986"></a><span class="lineno">  986</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#af5563e813910e11a78126223a6635faf">unroll2D</a>(face, firstface, temp, orientation);</div><div class="line"><a name="l00987"></a><span class="lineno">  987</span>&#160;            <span class="keywordflow">if</span> (temp &amp;&amp; founderror) {</div><div class="line"><a name="l00988"></a><span class="lineno">  988</span>&#160;                founderror = <span class="keyword">true</span>;</div><div class="line"><a name="l00989"></a><span class="lineno">  989</span>&#160;                error_index = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22be478eddc1140e6b800060c6ab513b">_donelist</a>.begin() + i;</div><div class="line"><a name="l00990"></a><span class="lineno">  990</span>&#160;            }</div><div class="line"><a name="l00991"></a><span class="lineno">  991</span>&#160;            <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">SubdivisionPoint</a>* p1 = face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>()-1);</div><div class="line"><a name="l00992"></a><span class="lineno">  992</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=0; j&lt;face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>(); j++) {</div><div class="line"><a name="l00993"></a><span class="lineno">  993</span>&#160;                <a class="code" href="classShipCAD_1_1SubdivisionPoint.html">SubdivisionPoint</a>* p2 = face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(j);</div><div class="line"><a name="l00994"></a><span class="lineno">  994</span>&#160;                <a class="code" href="classShipCAD_1_1SubdivisionEdge.html">SubdivisionEdge</a>* edge = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a53dbb5c8582ded9fce56d81b3e79116d">getOwner</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionBase.html#a0b9a68b5c7e6a20cf52a465f2387ffba">getOwner</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionSurface.html#adfdeabdc19eb55a7ba4ab0b607207300">edgeExists</a>(p1, p2);</div><div class="line"><a name="l00995"></a><span class="lineno">  995</span>&#160;                <span class="keywordflow">if</span> (edge != 0) {</div><div class="line"><a name="l00996"></a><span class="lineno">  996</span>&#160;                    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> k=0; k&lt;edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#ac4004284f7ab47437b9a1fe7adbde70d">numberOfFaces</a>(); k++) {</div><div class="line"><a name="l00997"></a><span class="lineno">  997</span>&#160;                        <a class="code" href="classShipCAD_1_1SubdivisionFace.html">SubdivisionFace</a>* child = edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#afe3de434f13adfde22f2c209197902de">getFace</a>(k);</div><div class="line"><a name="l00998"></a><span class="lineno">  998</span>&#160;                        index = find(todo.begin(), todo.end(), child);</div><div class="line"><a name="l00999"></a><span class="lineno">  999</span>&#160;                        <span class="keywordflow">if</span> (index != todo.end()) {</div><div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>&#160;                            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22be478eddc1140e6b800060c6ab513b">_donelist</a>.push_back(child);</div><div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>&#160;                            todo.erase(index);</div><div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>&#160;                        }</div><div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>&#160;                    }</div><div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>&#160;                }</div><div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>&#160;                p1 = p2;</div><div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>&#160;            }</div><div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>&#160;        }</div><div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>&#160;        seedface = 0;</div><div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>&#160;    }</div><div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>&#160;</div><div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>&#160;    <span class="comment">// calculate diff in area of all faces</span></div><div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#af180b25af9b064398ad1c08747589d78">_maxAreaError</a> = 0.0;</div><div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>&#160;    <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ace1b56968ee580af5a6776bdc5d67d59">_totalAreaError</a> = 0.0;</div><div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22be478eddc1140e6b800060c6ab513b">_donelist</a>.size(); i++) {</div><div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionFace.html">SubdivisionFace</a>* face = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22be478eddc1140e6b800060c6ab513b">_donelist</a>[i];</div><div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>&#160;        <span class="keywordtype">double</span> _2Darea = 0.0;</div><div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>&#160;        <span class="keywordtype">double</span> _3Darea = face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a1f27fc04bf353dd6295da574fa97c1f8">getArea</a>();</div><div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>&#160;        <span class="comment">// calculate 2D area</span></div><div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>&#160;        <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> index1 = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(), face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(0));</div><div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j=2; j&lt;face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">numberOfPoints</a>(); j++) {</div><div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>&#160;            <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> index2 = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(),</div><div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>&#160;                                             face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(j-1));</div><div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>&#160;            <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> index3 = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(),</div><div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>&#160;                                             face-&gt;<a class="code" href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">getPoint</a>(j));</div><div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>&#160;            _2Darea += <a class="code" href="classShipCAD_1_1DevelopedPatch.html#abd307ac53a6a3ab54b17c646d6f0bad5">triangleArea</a>((*index1).pt2D, (*index2).pt2D, (*index3).pt2D);</div><div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>&#160;        }</div><div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>&#160;        <span class="keywordtype">double</span> error = _2Darea - _3Darea;</div><div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>&#160;        <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ace1b56968ee580af5a6776bdc5d67d59">_totalAreaError</a> += error;</div><div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>&#160;        error = fabs(error);</div><div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>&#160;        <span class="keywordflow">if</span> (error &gt; <a class="code" href="classShipCAD_1_1DevelopedPatch.html#af180b25af9b064398ad1c08747589d78">_maxAreaError</a>)</div><div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#af180b25af9b064398ad1c08747589d78">_maxAreaError</a> = error;</div><div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>&#160;    }</div><div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>&#160;</div><div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>&#160;    <span class="comment">// calculate min/max errors of edges</span></div><div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2c7e5cadc05bcf6a66992d7269a9971e">_edges</a>.size(); i++) {</div><div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>&#160;        <a class="code" href="classShipCAD_1_1SubdivisionEdge.html">SubdivisionEdge</a>* edge = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a2c7e5cadc05bcf6a66992d7269a9971e">_edges</a>[i];</div><div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>&#160;        <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> index1 = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(),</div><div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>&#160;                                         edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#aa6e28532f3ecc1610813844dfb385deb">startPoint</a>());</div><div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>&#160;        <a class="code" href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">patchpt_iter</a> index2 = <a class="code" href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a>(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.begin(), <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end(),</div><div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>&#160;                                         edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#aa65e2e10929c52fd05b6bb90317977dc">endPoint</a>());</div><div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>&#160;        <span class="keywordflow">if</span> (index1 != <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end() &amp;&amp; index2 != <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">_points</a>.end()) {</div><div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>&#160;            <span class="comment">// original distance in 3D</span></div><div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>&#160;            <span class="keywordtype">double</span> L3D = edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#aa65e2e10929c52fd05b6bb90317977dc">endPoint</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a285325115089a1b99be4480bf6079bf1">getCoordinate</a>().distanceToPoint(</div><div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>&#160;                edge-&gt;<a class="code" href="classShipCAD_1_1SubdivisionEdge.html#aa6e28532f3ecc1610813844dfb385deb">startPoint</a>()-&gt;<a class="code" href="classShipCAD_1_1SubdivisionPoint.html#a285325115089a1b99be4480bf6079bf1">getCoordinate</a>());</div><div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>&#160;            <span class="keywordtype">double</span> L2D = (*index2).pt2D.distanceToPoint((*index1).pt2D);</div><div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>&#160;            <span class="keywordtype">double</span> error = L2D - L3D;</div><div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>&#160;            totalerror += fabs(error);</div><div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>&#160;            <span class="keywordflow">if</span> (fabs(error) &gt; maxerror)</div><div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>&#160;                maxerror = fabs(error);</div><div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>&#160;            <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a997ac5cd92f3479d976f79a4da064d42">_edgeErrors</a>[i] = error;</div><div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>&#160;        }</div><div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>&#160;    }</div><div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>&#160;    maxerror += fabs(<a class="code" href="classShipCAD_1_1DevelopedPatch.html#ace1b56968ee580af5a6776bdc5d67d59">_totalAreaError</a>);</div><div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>&#160;    </div><div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>&#160;    <span class="comment">// set error index</span></div><div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>&#160;    <span class="keywordflow">if</span> (!founderror)</div><div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>&#160;        error_index = <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a22be478eddc1140e6b800060c6ab513b">_donelist</a>.end();</div><div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>&#160;}</div><div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>&#160;</div><div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>&#160;</div><div class="line"><a name="l01061"></a><span class="lineno"><a class="line" href="classShipCAD_1_1DevelopedPatch.html#ae4f82982b3828b99f27c11ab20132516"> 1061</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html#ae4f82982b3828b99f27c11ab20132516">DevelopedPatch::dump</a>(ostream&amp; os)<span class="keyword"> const</span></div><div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>&#160;    os &lt;&lt; <span class="stringliteral">&quot; name:&quot;</span> &lt;&lt; <a class="code" href="classShipCAD_1_1DevelopedPatch.html#a0af8b4e9e1ee667c781fef6df56ca7d3">_name</a>.toStdString();</div><div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>&#160;}</div><div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>&#160;</div><div class="line"><a name="l01066"></a><span class="lineno"><a class="line" href="developedpatch_8h.html#a44e5fcf91c2601621059f154ec9d53d7"> 1066</a></span>&#160;ostream&amp; <a class="code" href="developedpatch_8cpp.html#a4adf3a9100a69b26ee73b805726a8526">operator &lt;&lt; </a>(ostream&amp; os, <span class="keyword">const</span> <a class="code" href="classShipCAD_1_1DevelopedPatch.html">ShipCAD::DevelopedPatch</a>&amp; patch)</div><div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>&#160;{</div><div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>&#160;    patch.<a class="code" href="classShipCAD_1_1DevelopedPatch.html#ae4f82982b3828b99f27c11ab20132516">dump</a>(os);</div><div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>&#160;    <span class="keywordflow">return</span> os;</div><div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>&#160;}</div><div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_ad3a9b8115925272b974b003a27a7f4c7"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#ad3a9b8115925272b974b003a27a7f4c7">ShipCAD::DevelopedPatch::processFaces</a></div><div class="ttdeci">void processFaces(SubdivisionFace *seedface, double &amp;maxerror, std::vector&lt; SubdivisionFace * &gt;::iterator &amp;error_index, std::vector&lt; SubdivisionFace * &gt; &amp;faces)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00956">developedpatch.cpp:956</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a811b2655727eb8af2e15e9eb48b54e89"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a811b2655727eb8af2e15e9eb48b54e89">ShipCAD::DevelopedPatch::_rotation</a></div><div class="ttdeci">float _rotation</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00230">developedpatch.h:230</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a501d803bd3252e9949a521cdd6ccff7b"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a501d803bd3252e9949a521cdd6ccff7b">ShipCAD::DevelopedPatch::_ygrid</a></div><div class="ttdeci">float _ygrid</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00238">developedpatch.h:238</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a22a4489ec7a6505c3c30fa7562175ca4a01f1428a8463fbd20d80a779e70b39cd"><div class="ttname"><a href="namespaceShipCAD.html#a22a4489ec7a6505c3c30fa7562175ca4a01f1428a8463fbd20d80a779e70b39cd">ShipCAD::poCCW</a></div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00066">developedpatch.h:66</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionPoint_html_abc15cbc4faebeb138c1a4a4890a3173b"><div class="ttname"><a href="classShipCAD_1_1SubdivisionPoint.html#abc15cbc4faebeb138c1a4a4890a3173b">ShipCAD::SubdivisionPoint::getVertexType</a></div><div class="ttdeci">vertex_type_t getVertexType() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivpoint_8h_source.html#l00169">subdivpoint.h:169</a></div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html_a04a94537b420a8d19dc5f78526e9a825"><div class="ttname"><a href="classShipCAD_1_1Spline.html#a04a94537b420a8d19dc5f78526e9a825">ShipCAD::Spline::getPoint</a></div><div class="ttdeci">QVector3D getPoint(size_t index) const </div><div class="ttdef"><b>Definition:</b> <a href="spline_8h_source.html#l00144">spline.h:144</a></div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html_ac3d9f4514573be91b316413bf062791a"><div class="ttname"><a href="classShipCAD_1_1Spline.html#ac3d9f4514573be91b316413bf062791a">ShipCAD::Spline::add</a></div><div class="ttdeci">void add(const QVector3D &amp;p)</div><div class="ttdoc">add a point to the spline </div><div class="ttdef"><b>Definition:</b> <a href="spline_8cpp_source.html#l00371">spline.cpp:371</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a61db759391d5f9d542dfe4551e2406ca"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a61db759391d5f9d542dfe4551e2406ca">ShipCAD::DevelopedPatch::_stations</a></div><div class="ttdeci">SplineVector _stations</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00208">developedpatch.h:208</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a3210c1289d04ec78d1a13217b5ea742a"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a3210c1289d04ec78d1a13217b5ea742a">ShipCAD::DevelopedPatch::crossproduct</a></div><div class="ttdeci">PolygonOrientation crossproduct(const QVector2D &amp;p1, const QVector2D &amp;p2, const QVector2D &amp;p3)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00756">developedpatch.cpp:756</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a0af8b4e9e1ee667c781fef6df56ca7d3"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a0af8b4e9e1ee667c781fef6df56ca7d3">ShipCAD::DevelopedPatch::_name</a></div><div class="ttdeci">QString _name</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00201">developedpatch.h:201</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_aff3046ee214026327f4cfda2733c31c6"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#aff3046ee214026327f4cfda2733c31c6">ShipCAD::DevelopedPatch::_showDiagonals</a></div><div class="ttdeci">bool _showDiagonals</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00222">developedpatch.h:222</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionPoint_html_a474297f7514f867f77ac35e50e9ce6aa"><div class="ttname"><a href="classShipCAD_1_1SubdivisionPoint.html#a474297f7514f867f77ac35e50e9ce6aa">ShipCAD::SubdivisionPoint::numberOfFaces</a></div><div class="ttdeci">size_t numberOfFaces() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivpoint_8h_source.html#l00160">subdivpoint.h:160</a></div></div>
<div class="ttc" id="subdivface_8h_html"><div class="ttname"><a href="subdivface_8h.html">subdivface.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a58a7a720496ce4fe60118e4e6e477fdd"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a58a7a720496ce4fe60118e4e6e477fdd">ShipCAD::DevelopedPatch::_translation</a></div><div class="ttdeci">QVector2D _translation</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00234">developedpatch.h:234</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlFace_html_a6f015666ee5e626ce3aed4973f8d12a7"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlFace.html#a6f015666ee5e626ce3aed4973f8d12a7">ShipCAD::SubdivisionControlFace::getChild</a></div><div class="ttdeci">SubdivisionFace * getChild(size_t index) const </div><div class="ttdef"><b>Definition:</b> <a href="subdivface_8cpp_source.html#l01059">subdivface.cpp:1059</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlFace_html_acff2f413eceb70e345640c4519fb50bb"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlFace.html#acff2f413eceb70e345640c4519fb50bb">ShipCAD::SubdivisionControlFace::childrenEnd</a></div><div class="ttdeci">std::vector&lt; SubdivisionFace * &gt;::iterator childrenEnd()</div><div class="ttdef"><b>Definition:</b> <a href="subdivface_8h_source.html#l00323">subdivface.h:323</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a85a8213cf1d96c9c1a959a67223971ea"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a85a8213cf1d96c9c1a959a67223971ea">ShipCAD::DevelopedPatch::_shadeSubmerged</a></div><div class="ttdeci">bool _shadeSubmerged</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00227">developedpatch.h:227</a></div></div>
<div class="ttc" id="structPatchPointPred_html_a981ff7bab687bc4c7b7342bb911e0858"><div class="ttname"><a href="structPatchPointPred.html#a981ff7bab687bc4c7b7342bb911e0858">PatchPointPred::PatchPointPred</a></div><div class="ttdeci">PatchPointPred(ShipCAD::SubdivisionPoint *pt)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00208">developedpatch.cpp:208</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_ad4bf48489d173fd29503cd9b511f52e9"><div class="ttname"><a href="namespaceShipCAD.html#ad4bf48489d173fd29503cd9b511f52e9">ShipCAD::Sign</a></div><div class="ttdeci">double Sign(double val)</div><div class="ttdoc">get the sign of a floating point number </div><div class="ttdef"><b>Definition:</b> <a href="utility_8cpp_source.html#l00621">utility.cpp:621</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_af180b25af9b064398ad1c08747589d78"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#af180b25af9b064398ad1c08747589d78">ShipCAD::DevelopedPatch::_maxAreaError</a></div><div class="ttdeci">double _maxAreaError</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00235">developedpatch.h:235</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a2c7e5cadc05bcf6a66992d7269a9971e"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a2c7e5cadc05bcf6a66992d7269a9971e">ShipCAD::DevelopedPatch::_edges</a></div><div class="ttdeci">std::vector&lt; SubdivisionEdge * &gt; _edges</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00204">developedpatch.h:204</a></div></div>
<div class="ttc" id="developedpatch_8h_html"><div class="ttname"><a href="developedpatch_8h.html">developedpatch.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a4708ff9dd3e334c0e774944d25b07947"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a4708ff9dd3e334c0e774944d25b07947">ShipCAD::DevelopedPatch::_waterlines</a></div><div class="ttdeci">SplineVector _waterlines</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00209">developedpatch.h:209</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_ae4f82982b3828b99f27c11ab20132516"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#ae4f82982b3828b99f27c11ab20132516">ShipCAD::DevelopedPatch::dump</a></div><div class="ttdeci">void dump(std::ostream &amp;os) const </div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l01061">developedpatch.cpp:1061</a></div></div>
<div class="ttc" id="classShipCAD_1_1Plane_html_a01b0067ca1a669aef5a8ab85bfce41cc"><div class="ttname"><a href="classShipCAD_1_1Plane.html#a01b0067ca1a669aef5a8ab85bfce41cc">ShipCAD::Plane::c</a></div><div class="ttdeci">float c() const </div><div class="ttdef"><b>Definition:</b> <a href="plane_8h_source.html#l00054">plane.h:54</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html">ShipCAD::DevelopedPatch</a></div><div class="ttdoc">Portion of developed surface. </div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00070">developedpatch.h:70</a></div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html_ae02af8d5473f952644ac5103d7beebf2"><div class="ttname"><a href="classShipCAD_1_1Spline.html#ae02af8d5473f952644ac5103d7beebf2">ShipCAD::Spline::setPoint</a></div><div class="ttdeci">void setPoint(size_t index, const QVector3D &amp;p)</div><div class="ttdef"><b>Definition:</b> <a href="spline_8cpp_source.html#l00103">spline.cpp:103</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a03171cc921c53a568b778f5131a60deba11889066d8ae7a44f297f45684bb99de"><div class="ttname"><a href="namespaceShipCAD.html#a03171cc921c53a568b778f5131a60deba11889066d8ae7a44f297f45684bb99de">ShipCAD::svRegular</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00140">shipcadlib.h:140</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_abd307ac53a6a3ab54b17c646d6f0bad5"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#abd307ac53a6a3ab54b17c646d6f0bad5">ShipCAD::DevelopedPatch::triangleArea</a></div><div class="ttdeci">double triangleArea(const QVector2D &amp;p1, const QVector2D &amp;p2, const QVector2D &amp;p3)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00946">developedpatch.cpp:946</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a9cc5530b21f276b51279a2a46e261203"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a9cc5530b21f276b51279a2a46e261203">ShipCAD::DevelopedPatch::getPoint</a></div><div class="ttdeci">QVector3D getPoint(size_t index)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00169">developedpatch.cpp:169</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a18bd449dd6e474499a1fb28f20140919"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a18bd449dd6e474499a1fb28f20140919">ShipCAD::DevelopedPatch::_showPartName</a></div><div class="ttdeci">bool _showPartName</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00217">developedpatch.h:217</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionEdge_html_afe3de434f13adfde22f2c209197902de"><div class="ttname"><a href="classShipCAD_1_1SubdivisionEdge.html#afe3de434f13adfde22f2c209197902de">ShipCAD::SubdivisionEdge::getFace</a></div><div class="ttdeci">SubdivisionFace * getFace(size_t index) const </div><div class="ttdef"><b>Definition:</b> <a href="subdivedge_8cpp_source.html#l00156">subdivedge.cpp:156</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a53dbb5c8582ded9fce56d81b3e79116d"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a53dbb5c8582ded9fce56d81b3e79116d">ShipCAD::DevelopedPatch::getOwner</a></div><div class="ttdeci">SubdivisionLayer * getOwner()</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00083">developedpatch.h:83</a></div></div>
<div class="ttc" id="classPointerVector_html_a65263559ccd6a9eac2904c691453867b"><div class="ttname"><a href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">PointerVector::size</a></div><div class="ttdeci">size_t size() const </div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00063">pointervec.h:63</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a14dffbaa2c469eb825bb791c7c7cff42"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a14dffbaa2c469eb825bb791c7c7cff42">ShipCAD::DevelopedPatch::midPoint</a></div><div class="ttdeci">QVector2D midPoint()</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00163">developedpatch.cpp:163</a></div></div>
<div class="ttc" id="shipcadlib_8h_html"><div class="ttname"><a href="shipcadlib_8h.html">shipcadlib.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionEdge_html"><div class="ttname"><a href="classShipCAD_1_1SubdivisionEdge.html">ShipCAD::SubdivisionEdge</a></div><div class="ttdef"><b>Definition:</b> <a href="subdivedge_8h_source.html#l00054">subdivedge.h:54</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a71eaddef96ee0edcefb7c15f07c65f7a"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a71eaddef96ee0edcefb7c15f07c65f7a">ShipCAD::DevelopedPatch::intersectPlane</a></div><div class="ttdeci">void intersectPlane(Plane &amp;plane, QColor color)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00219">developedpatch.cpp:219</a></div></div>
<div class="ttc" id="classPointerVector_html_a9f708acfaa3ce26d14b02d8e285c8729"><div class="ttname"><a href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">PointerVector::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00054">pointervec.h:54</a></div></div>
<div class="ttc" id="structPatchIntersection_html"><div class="ttname"><a href="structPatchIntersection.html">PatchIntersection</a></div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00195">developedpatch.cpp:195</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionPoint_html_a348be9715813e54ce5895b551d46c67c"><div class="ttname"><a href="classShipCAD_1_1SubdivisionPoint.html#a348be9715813e54ce5895b551d46c67c">ShipCAD::SubdivisionPoint::getFace</a></div><div class="ttdeci">SubdivisionFace * getFace(size_t index) const </div><div class="ttdef"><b>Definition:</b> <a href="subdivpoint_8cpp_source.html#l00095">subdivpoint.cpp:95</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionBase_html_a0b9a68b5c7e6a20cf52a465f2387ffba"><div class="ttname"><a href="classShipCAD_1_1SubdivisionBase.html#a0b9a68b5c7e6a20cf52a465f2387ffba">ShipCAD::SubdivisionBase::getOwner</a></div><div class="ttdeci">SubdivisionSurface * getOwner()</div><div class="ttdoc">get the owning surface </div><div class="ttdef"><b>Definition:</b> <a href="subdivbase_8h_source.html#l00060">subdivbase.h:60</a></div></div>
<div class="ttc" id="plane_8h_html"><div class="ttname"><a href="plane_8h.html">plane.h</a></div></div>
<div class="ttc" id="developedpatch_8cpp_html_a80335a9b6548a17cc7b06055cb888564"><div class="ttname"><a href="developedpatch_8cpp.html#a80335a9b6548a17cc7b06055cb888564">find_point</a></div><div class="ttdeci">patchpt_iter find_point(patchpt_iter start, patchpt_iter end, SubdivisionPoint *pt)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00212">developedpatch.cpp:212</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_af5563e813910e11a78126223a6635faf"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#af5563e813910e11a78126223a6635faf">ShipCAD::DevelopedPatch::unroll2D</a></div><div class="ttdeci">void unroll2D(SubdivisionFace *face, bool &amp;firstface, bool &amp;error, PolygonOrientation &amp;orientation)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00848">developedpatch.cpp:848</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_ab47218dccdf4c94d5989b2e5b13d8603"><div class="ttname"><a href="namespaceShipCAD.html#ab47218dccdf4c94d5989b2e5b13d8603">ShipCAD::ZERO2</a></div><div class="ttdeci">const QVector2D ZERO2</div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_add1e0f68f33725c24a71bbd46e13820b"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#add1e0f68f33725c24a71bbd46e13820b">ShipCAD::DevelopedPatch::_mirror</a></div><div class="ttdeci">bool _mirror</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00215">developedpatch.h:215</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a997ac5cd92f3479d976f79a4da064d42"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a997ac5cd92f3479d976f79a4da064d42">ShipCAD::DevelopedPatch::_edgeErrors</a></div><div class="ttdeci">std::vector&lt; double &gt; _edgeErrors</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00206">developedpatch.h:206</a></div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdoc">STL namespace. </div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a573e309a7022ad3b2eef7441b1f9f663"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a573e309a7022ad3b2eef7441b1f9f663">ShipCAD::DevelopedPatch::_xgrid</a></div><div class="ttdeci">float _xgrid</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00237">developedpatch.h:237</a></div></div>
<div class="ttc" id="structShipCAD_1_1PatchPoints_html"><div class="ttname"><a href="structShipCAD_1_1PatchPoints.html">ShipCAD::PatchPoints</a></div><div class="ttdoc">Store SubdivisionPoint to unrolled point mapping. </div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00056">developedpatch.h:56</a></div></div>
<div class="ttc" id="viewport_8h_html"><div class="ttname"><a href="viewport_8h.html">viewport.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_aaa57f091d14d72af632b838a1cfd39c0"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#aaa57f091d14d72af632b838a1cfd39c0">ShipCAD::DevelopedPatch::calculateTriangle</a></div><div class="ttdeci">QVector2D calculateTriangle(double a, double b, double c, const QVector2D &amp;p1, const QVector2D &amp;p2)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00770">developedpatch.cpp:770</a></div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html_aa62cf7afa6461bafce7227ec31875219"><div class="ttname"><a href="classShipCAD_1_1Spline.html#aa62cf7afa6461bafce7227ec31875219">ShipCAD::Spline::value</a></div><div class="ttdeci">QVector3D value(float parameter) const </div><div class="ttdef"><b>Definition:</b> <a href="spline_8cpp_source.html#l00806">spline.cpp:806</a></div></div>
<div class="ttc" id="structPatchPointPred_html_a79fcffc92b3f4411cc5f037a87cbaf2e"><div class="ttname"><a href="structPatchPointPred.html#a79fcffc92b3f4411cc5f037a87cbaf2e">PatchPointPred::querypt</a></div><div class="ttdeci">ShipCAD::SubdivisionPoint * querypt</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00204">developedpatch.cpp:204</a></div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html_ad4f075e2e8f1d3ac7c2d22b5be75bbad"><div class="ttname"><a href="classShipCAD_1_1Spline.html#ad4f075e2e8f1d3ac7c2d22b5be75bbad">ShipCAD::Spline::setKnuckle</a></div><div class="ttdeci">void setKnuckle(size_t index, bool val)</div><div class="ttdef"><b>Definition:</b> <a href="spline_8cpp_source.html#l00092">spline.cpp:92</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_ae27386140a170f80afed4565202f522c"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#ae27386140a170f80afed4565202f522c">ShipCAD::DevelopedPatch::_boundaryEdges</a></div><div class="ttdeci">std::vector&lt; SubdivisionEdge * &gt; _boundaryEdges</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00205">developedpatch.h:205</a></div></div>
<div class="ttc" id="classPointerVector_html_af28c2517157ddacfb4d92a4fc73c5a92"><div class="ttname"><a href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">PointerVector::get</a></div><div class="ttdeci">T * get(size_t index)</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00066">pointervec.h:66</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a6d8a53701a952c0a6777e0b0c2ca6127"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a6d8a53701a952c0a6777e0b0c2ca6127">ShipCAD::DevelopedPatch::extents</a></div><div class="ttdeci">virtual void extents(QVector3D &amp;min, QVector3D &amp;max)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00102">developedpatch.cpp:102</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionLayer_html_a22eacfdf763840d534d45b18b789f8c7"><div class="ttname"><a href="classShipCAD_1_1SubdivisionLayer.html#a22eacfdf763840d534d45b18b789f8c7">ShipCAD::SubdivisionLayer::getName</a></div><div class="ttdeci">QString getName() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivlayer_8cpp_source.html#l00074">subdivlayer.cpp:74</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_ac344c080c66b4394cb988cf88c726029"><div class="ttname"><a href="namespaceShipCAD.html#ac344c080c66b4394cb988cf88c726029">ShipCAD::DegToRad</a></div><div class="ttdeci">float DegToRad(float deg)</div><div class="ttdoc">convert degrees to radians </div><div class="ttdef"><b>Definition:</b> <a href="utility_8cpp_source.html#l00243">utility.cpp:243</a></div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html_aa15d52dbfa55ec3b1ec272104a45ebd5"><div class="ttname"><a href="classShipCAD_1_1Spline.html#aa15d52dbfa55ec3b1ec272104a45ebd5">ShipCAD::Spline::numberOfPoints</a></div><div class="ttdeci">size_t numberOfPoints() const </div><div class="ttdef"><b>Definition:</b> <a href="spline_8h_source.html#l00157">spline.h:157</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_af3c4ba4cad20580cc8d5a4591b0bffd0"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#af3c4ba4cad20580cc8d5a4591b0bffd0">ShipCAD::DevelopedPatch::clear</a></div><div class="ttdeci">virtual void clear()</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00056">developedpatch.cpp:56</a></div></div>
<div class="ttc" id="subdivsurface_8h_html"><div class="ttname"><a href="subdivsurface_8h.html">subdivsurface.h</a></div></div>
<div class="ttc" id="subdivpoint_8h_html"><div class="ttname"><a href="subdivpoint_8h.html">subdivpoint.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a93c223c8eb2a39524cae8f71a863a15a"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a93c223c8eb2a39524cae8f71a863a15a">ShipCAD::DevelopedPatch::minError</a></div><div class="ttdeci">double minError()</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00136">developedpatch.cpp:136</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_ab91b09750cdae69f7f39b12980191f5e"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#ab91b09750cdae69f7f39b12980191f5e">ShipCAD::DevelopedPatch::setRotation</a></div><div class="ttdeci">void setRotation(float val)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00145">developedpatch.cpp:145</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_aad8361f99a45d4fa04450828e0e177d0"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#aad8361f99a45d4fa04450828e0e177d0">ShipCAD::DevelopedPatch::_sin</a></div><div class="ttdeci">float _sin</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00240">developedpatch.h:240</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a425239fe90e8afd53ad126a1afdce42f"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a425239fe90e8afd53ad126a1afdce42f">ShipCAD::DevelopedPatch::_connectedMirror</a></div><div class="ttdeci">DevelopedPatch * _connectedMirror</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00202">developedpatch.h:202</a></div></div>
<div class="ttc" id="classShipCAD_1_1Viewport_html"><div class="ttname"><a href="classShipCAD_1_1Viewport.html">ShipCAD::Viewport</a></div><div class="ttdef"><b>Definition:</b> <a href="viewport_8h_source.html#l00070">viewport.h:70</a></div></div>
<div class="ttc" id="shader_8h_html"><div class="ttname"><a href="shader_8h.html">shader.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a647c43e415156bab3ecda6a849d4bb70"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a647c43e415156bab3ecda6a849d4bb70">ShipCAD::DevelopedPatch::_showButtocks</a></div><div class="ttdeci">bool _showButtocks</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00221">developedpatch.h:221</a></div></div>
<div class="ttc" id="structPatchIntersection_html_a328e33e74b1d1904db5d69fd512b7d5c"><div class="ttname"><a href="structPatchIntersection.html#a328e33e74b1d1904db5d69fd512b7d5c">PatchIntersection::knuckle</a></div><div class="ttdeci">bool knuckle</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00198">developedpatch.cpp:198</a></div></div>
<div class="ttc" id="classPointerVector_html"><div class="ttname"><a href="classPointerVector.html">PointerVector&lt; Spline &gt;</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionEdge_html_ac4004284f7ab47437b9a1fe7adbde70d"><div class="ttname"><a href="classShipCAD_1_1SubdivisionEdge.html#ac4004284f7ab47437b9a1fe7adbde70d">ShipCAD::SubdivisionEdge::numberOfFaces</a></div><div class="ttdeci">size_t numberOfFaces() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivedge_8h_source.html#l00080">subdivedge.h:80</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a55470422ecac9d544c811eddc8c3d1c1"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a55470422ecac9d544c811eddc8c3d1c1">ShipCAD::DevelopedPatch::unroll</a></div><div class="ttdeci">void unroll(std::vector&lt; SubdivisionControlFace * &gt; controlfaces)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00473">developedpatch.cpp:473</a></div></div>
<div class="ttc" id="classShipCAD_1_1Entity_html_a7c4227afa7a356a667224cfba69a24e5"><div class="ttname"><a href="classShipCAD_1_1Entity.html#a7c4227afa7a356a667224cfba69a24e5">ShipCAD::Entity::getMin</a></div><div class="ttdeci">QVector3D getMin() const </div><div class="ttdef"><b>Definition:</b> <a href="entity_8cpp_source.html#l00076">entity.cpp:76</a></div></div>
<div class="ttc" id="subdivedge_8h_html"><div class="ttname"><a href="subdivedge_8h.html">subdivedge.h</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a22a4489ec7a6505c3c30fa7562175ca4"><div class="ttname"><a href="namespaceShipCAD.html#a22a4489ec7a6505c3c30fa7562175ca4">ShipCAD::PolygonOrientation</a></div><div class="ttdeci">PolygonOrientation</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00066">developedpatch.h:66</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionFace_html"><div class="ttname"><a href="classShipCAD_1_1SubdivisionFace.html">ShipCAD::SubdivisionFace</a></div><div class="ttdef"><b>Definition:</b> <a href="subdivface_8h_source.html#l00058">subdivface.h:58</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_aaed537a17f41b3bec950509299725edf"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#aaed537a17f41b3bec950509299725edf">ShipCAD::SubdivisionSurface::isolateEdges</a></div><div class="ttdeci">void isolateEdges(std::vector&lt; SubdivisionEdge * &gt; &amp;input, std::vector&lt; std::vector&lt; SubdivisionPoint * &gt; &gt; &amp;sorted)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l03148">subdivsurface.cpp:3148</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a18ecaf8785655a33537ae155208b4c17"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a18ecaf8785655a33537ae155208b4c17">ShipCAD::DevelopedPatch::maxError</a></div><div class="ttdeci">double maxError()</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00127">developedpatch.cpp:127</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a9f3f6d98182ef33bf1bef3bdacd41ecc"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a9f3f6d98182ef33bf1bef3bdacd41ecc">ShipCAD::DevelopedPatch::_showBoundingBox</a></div><div class="ttdeci">bool _showBoundingBox</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00218">developedpatch.h:218</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a646812cc2b9066dfc47f2ed7e1faa955"><div class="ttname"><a href="namespaceShipCAD.html#a646812cc2b9066dfc47f2ed7e1faa955">ShipCAD::Truncate</a></div><div class="ttdeci">QString Truncate(float val, int max_length)</div><div class="ttdoc">convert a float value to a string with max number of decimals </div><div class="ttdef"><b>Definition:</b> <a href="utility_8cpp_source.html#l00224">utility.cpp:224</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlFace_html_a6a79fec036f3d7d52214a280e878a038"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlFace.html#a6a79fec036f3d7d52214a280e878a038">ShipCAD::SubdivisionControlFace::numberOfChildren</a></div><div class="ttdeci">size_t numberOfChildren() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivface_8h_source.html#l00310">subdivface.h:310</a></div></div>
<div class="ttc" id="developedpatch_8cpp_html_a4adf3a9100a69b26ee73b805726a8526"><div class="ttname"><a href="developedpatch_8cpp.html#a4adf3a9100a69b26ee73b805726a8526">operator&lt;&lt;</a></div><div class="ttdeci">ostream &amp; operator&lt;&lt;(ostream &amp;os, const ShipCAD::DevelopedPatch &amp;patch)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l01066">developedpatch.cpp:1066</a></div></div>
<div class="ttc" id="structPatchIntersection_html_ada1d0adcd4dbc07d37a1676ac3c89cf0"><div class="ttname"><a href="structPatchIntersection.html#ada1d0adcd4dbc07d37a1676ac3c89cf0">PatchIntersection::point</a></div><div class="ttdeci">QVector3D point</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00197">developedpatch.cpp:197</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a349177098a4fcdbc6bf3812a79e3cb49"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a349177098a4fcdbc6bf3812a79e3cb49">ShipCAD::DevelopedPatch::_showDimensions</a></div><div class="ttdeci">bool _showDimensions</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00225">developedpatch.h:225</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a0528f08293c1ac8e53e3954c8c9e8585"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a0528f08293c1ac8e53e3954c8c9e8585">ShipCAD::DevelopedPatch::saveToTextFile</a></div><div class="ttdeci">void saveToTextFile(QStringList &amp;strings)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00418">developedpatch.cpp:418</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlFace_html"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlFace.html">ShipCAD::SubdivisionControlFace</a></div><div class="ttdef"><b>Definition:</b> <a href="subdivface_8h_source.html#l00219">subdivface.h:219</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a22b335fdb32b04aab580fc1dd90e0481"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a22b335fdb32b04aab580fc1dd90e0481">ShipCAD::DevelopedPatch::_buttocks</a></div><div class="ttdeci">SplineVector _buttocks</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00210">developedpatch.h:210</a></div></div>
<div class="ttc" id="subdivlayer_8h_html"><div class="ttname"><a href="subdivlayer_8h.html">subdivlayer.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_acd5b00b39301b249e3c019674dd67186"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#acd5b00b39301b249e3c019674dd67186">ShipCAD::DevelopedPatch::convertTo3D</a></div><div class="ttdeci">QVector3D convertTo3D(QVector2D p)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00321">developedpatch.cpp:321</a></div></div>
<div class="ttc" id="classShipCAD_1_1Plane_html_adf79c9ba86dd3112fc098141195fcac5"><div class="ttname"><a href="classShipCAD_1_1Plane.html#adf79c9ba86dd3112fc098141195fcac5">ShipCAD::Plane::b</a></div><div class="ttdeci">float b() const </div><div class="ttdef"><b>Definition:</b> <a href="plane_8h_source.html#l00052">plane.h:52</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionFace_html_a68bc7676c4f254ddb19e04f8cb5ba76f"><div class="ttname"><a href="classShipCAD_1_1SubdivisionFace.html#a68bc7676c4f254ddb19e04f8cb5ba76f">ShipCAD::SubdivisionFace::getPoint</a></div><div class="ttdeci">SubdivisionPoint * getPoint(size_t index) const </div><div class="ttdoc">get face point </div><div class="ttdef"><b>Definition:</b> <a href="subdivface_8cpp_source.html#l00147">subdivface.cpp:147</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_aa5d3fc63603d716d3e24244049e1e510"><div class="ttname"><a href="namespaceShipCAD.html#aa5d3fc63603d716d3e24244049e1e510">ShipCAD::MinMax</a></div><div class="ttdeci">void MinMax(const QVector3D &amp;p, QVector3D &amp;min, QVector3D &amp;max)</div><div class="ttdoc">find the min and max coordinates from a point </div><div class="ttdef"><b>Definition:</b> <a href="utility_8cpp_source.html#l00040">utility.cpp:40</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_ace1b56968ee580af5a6776bdc5d67d59"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#ace1b56968ee580af5a6776bdc5d67d59">ShipCAD::DevelopedPatch::_totalAreaError</a></div><div class="ttdeci">double _totalAreaError</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00236">developedpatch.h:236</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a9ecc3812de9fd0999336c99a71774bbd"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a9ecc3812de9fd0999336c99a71774bbd">ShipCAD::DevelopedPatch::saveToDXF</a></div><div class="ttdeci">void saveToDXF(QStringList &amp;strings)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00337">developedpatch.cpp:337</a></div></div>
<div class="ttc" id="structPatchPointPred_html"><div class="ttname"><a href="structPatchPointPred.html">PatchPointPred</a></div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00202">developedpatch.cpp:202</a></div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html_a58f8c0b2fcc07931a886a85515750e59"><div class="ttname"><a href="classShipCAD_1_1Spline.html#a58f8c0b2fcc07931a886a85515750e59">ShipCAD::Spline::getFragments</a></div><div class="ttdeci">size_t getFragments() const </div><div class="ttdef"><b>Definition:</b> <a href="spline_8h_source.html#l00151">spline.h:151</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a03171cc921c53a568b778f5131a60deba8d802131f84b0a9edf8a419eded859d0"><div class="ttname"><a href="namespaceShipCAD.html#a03171cc921c53a568b778f5131a60deba8d802131f84b0a9edf8a419eded859d0">ShipCAD::svCorner</a></div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00143">shipcadlib.h:143</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a2eddf75f0e29363ab81a3fb0e0211848"><div class="ttname"><a href="namespaceShipCAD.html#a2eddf75f0e29363ab81a3fb0e0211848">ShipCAD::JoinSplineSegments</a></div><div class="ttdeci">void JoinSplineSegments(float join_error, bool force_to_one_segment, SplineVector &amp;list)</div><div class="ttdoc">join a set of linesegments and connect them into as few as possible splines </div><div class="ttdef"><b>Definition:</b> <a href="utility_8cpp_source.html#l00428">utility.cpp:428</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a69b081dd347722fb55da2f3958db5d08"><div class="ttname"><a href="namespaceShipCAD.html#a69b081dd347722fb55da2f3958db5d08">ShipCAD::patchpt_iter</a></div><div class="ttdeci">std::vector&lt; PatchPoints &gt;::iterator patchpt_iter</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00063">developedpatch.h:63</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionControlFace_html_ad20ed50df8ddd91c4aa04eb482ab0fa0"><div class="ttname"><a href="classShipCAD_1_1SubdivisionControlFace.html#ad20ed50df8ddd91c4aa04eb482ab0fa0">ShipCAD::SubdivisionControlFace::childrenBegin</a></div><div class="ttdeci">std::vector&lt; SubdivisionFace * &gt;::iterator childrenBegin()</div><div class="ttdef"><b>Definition:</b> <a href="subdivface_8h_source.html#l00322">subdivface.h:322</a></div></div>
<div class="ttc" id="classPointerVector_html_acb88f3cb0aa36baaebabc0900bb304e6"><div class="ttname"><a href="classPointerVector.html#acb88f3cb0aa36baaebabc0900bb304e6">PointerVector::del</a></div><div class="ttdeci">bool del(T *elem)</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00074">pointervec.h:74</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_af7769b0032f7ca99b0790d1ae75d6d9f"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#af7769b0032f7ca99b0790d1ae75d6d9f">ShipCAD::DevelopedPatch::getMirrorPoint</a></div><div class="ttdeci">QVector3D getMirrorPoint(size_t index)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00177">developedpatch.cpp:177</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a14b9ceea38e54192b32764021161d199"><div class="ttname"><a href="namespaceShipCAD.html#a14b9ceea38e54192b32764021161d199">ShipCAD::subdivface_iter</a></div><div class="ttdeci">std::vector&lt; SubdivisionFace * &gt;::iterator subdivface_iter</div><div class="ttdef"><b>Definition:</b> <a href="subdivface_8h_source.html#l00214">subdivface.h:214</a></div></div>
<div class="ttc" id="utility_8h_html"><div class="ttname"><a href="utility_8h.html">utility.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_ab4f30ac4039457e394a106294150a5eb"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#ab4f30ac4039457e394a106294150a5eb">ShipCAD::DevelopedPatch::_visible</a></div><div class="ttdeci">bool _visible</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00214">developedpatch.h:214</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionFace_html_abd79b6dfadd10befe94b524a34063b27"><div class="ttname"><a href="classShipCAD_1_1SubdivisionFace.html#abd79b6dfadd10befe94b524a34063b27">ShipCAD::SubdivisionFace::numberOfPoints</a></div><div class="ttdeci">size_t numberOfPoints() const </div><div class="ttdoc">number of points for this face </div><div class="ttdef"><b>Definition:</b> <a href="subdivface_8h_source.html#l00122">subdivface.h:122</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a7fe7981020e5078148b87c9b0bab9075"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a7fe7981020e5078148b87c9b0bab9075">ShipCAD::DevelopedPatch::_min2D</a></div><div class="ttdeci">QVector2D _min2D</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00232">developedpatch.h:232</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_aba8c1bb34e8690b2192b3cc2c389bad9"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#aba8c1bb34e8690b2192b3cc2c389bad9">ShipCAD::DevelopedPatch::exportSpline</a></div><div class="ttdeci">void exportSpline(QStringList &amp;strings, Spline *spline, const QString &amp;layername)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00396">developedpatch.cpp:396</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a3c4527d0a0fcafff2b506aabef67a43e"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a3c4527d0a0fcafff2b506aabef67a43e">ShipCAD::DevelopedPatch::calculateTriangle2</a></div><div class="ttdeci">QVector2D calculateTriangle2(double a, double b, double c, const QVector2D &amp;p1, const QVector2D &amp;p2)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00810">developedpatch.cpp:810</a></div></div>
<div class="ttc" id="classShipCAD_1_1LineShader_html"><div class="ttname"><a href="classShipCAD_1_1LineShader.html">ShipCAD::LineShader</a></div><div class="ttdef"><b>Definition:</b> <a href="shader_8h_source.html#l00075">shader.h:75</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a22a4489ec7a6505c3c30fa7562175ca4a785617c870ff5f0a2321ca2f6542aa7b"><div class="ttname"><a href="namespaceShipCAD.html#a22a4489ec7a6505c3c30fa7562175ca4a785617c870ff5f0a2321ca2f6542aa7b">ShipCAD::poCW</a></div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00066">developedpatch.h:66</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a22be478eddc1140e6b800060c6ab513b"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a22be478eddc1140e6b800060c6ab513b">ShipCAD::DevelopedPatch::_donelist</a></div><div class="ttdeci">std::vector&lt; SubdivisionFace * &gt; _donelist</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00207">developedpatch.h:207</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionEdge_html_aa6e28532f3ecc1610813844dfb385deb"><div class="ttname"><a href="classShipCAD_1_1SubdivisionEdge.html#aa6e28532f3ecc1610813844dfb385deb">ShipCAD::SubdivisionEdge::startPoint</a></div><div class="ttdeci">SubdivisionPoint * startPoint() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivedge_8h_source.html#l00075">subdivedge.h:75</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_ae668e0bc0c43821a883881c752fd4725"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#ae668e0bc0c43821a883881c752fd4725">ShipCAD::DevelopedPatch::_corners</a></div><div class="ttdeci">std::vector&lt; SubdivisionPoint * &gt; _corners</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00212">developedpatch.h:212</a></div></div>
<div class="ttc" id="classShipCAD_1_1Entity_html_ad9e95df651ae01a48242604262b051b3"><div class="ttname"><a href="classShipCAD_1_1Entity.html#ad9e95df651ae01a48242604262b051b3">ShipCAD::Entity::getMax</a></div><div class="ttdeci">QVector3D getMax() const </div><div class="ttdef"><b>Definition:</b> <a href="entity_8cpp_source.html#l00083">entity.cpp:83</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionLayer_html"><div class="ttname"><a href="classShipCAD_1_1SubdivisionLayer.html">ShipCAD::SubdivisionLayer</a></div><div class="ttdoc">Layer, collection of SubdivisionControlFaces. </div><div class="ttdef"><b>Definition:</b> <a href="subdivlayer_8h_source.html#l00061">subdivlayer.h:61</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionEdge_html_ae649fe7169f64a8e5ede1fbb36a176fa"><div class="ttname"><a href="classShipCAD_1_1SubdivisionEdge.html#ae649fe7169f64a8e5ede1fbb36a176fa">ShipCAD::SubdivisionEdge::isCrease</a></div><div class="ttdeci">bool isCrease() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivedge_8h_source.html#l00081">subdivedge.h:81</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a87efc267ae07a84fb1cd55a4562c2907"><div class="ttname"><a href="namespaceShipCAD.html#a87efc267ae07a84fb1cd55a4562c2907">ShipCAD::FindDXFColorIndex</a></div><div class="ttdeci">int FindDXFColorIndex(QColor color)</div><div class="ttdoc">convert a QColor to a DXF color index </div><div class="ttdef"><b>Definition:</b> <a href="utility_8cpp_source.html#l00133">utility.cpp:133</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a86574c4cb5748be1725e4a489270db1a"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a86574c4cb5748be1725e4a489270db1a">ShipCAD::DevelopedPatch::_mirrorOnScreen</a></div><div class="ttdeci">bool _mirrorOnScreen</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00226">developedpatch.h:226</a></div></div>
<div class="ttc" id="classShipCAD_1_1Plane_html_a6851b997a300848fcb37b33407165c44"><div class="ttname"><a href="classShipCAD_1_1Plane.html#a6851b997a300848fcb37b33407165c44">ShipCAD::Plane::distance</a></div><div class="ttdeci">float distance(const QVector3D &amp;point) const </div><div class="ttdef"><b>Definition:</b> <a href="plane_8cpp_source.html#l00072">plane.cpp:72</a></div></div>
<div class="ttc" id="classShipCAD_1_1Plane_html"><div class="ttname"><a href="classShipCAD_1_1Plane.html">ShipCAD::Plane</a></div><div class="ttdef"><b>Definition:</b> <a href="plane_8h_source.html#l00039">plane.h:39</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionFace_html_a94b07cf08781a9d80caf14a8f97df148"><div class="ttname"><a href="classShipCAD_1_1SubdivisionFace.html#a94b07cf08781a9d80caf14a8f97df148">ShipCAD::SubdivisionFace::getFaceNormal</a></div><div class="ttdeci">QVector3D getFaceNormal() const </div><div class="ttdoc">get coordinates of the face normal </div><div class="ttdef"><b>Definition:</b> <a href="subdivface_8cpp_source.html#l00116">subdivface.cpp:116</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionSurface_html_adfdeabdc19eb55a7ba4ab0b607207300"><div class="ttname"><a href="classShipCAD_1_1SubdivisionSurface.html#adfdeabdc19eb55a7ba4ab0b607207300">ShipCAD::SubdivisionSurface::edgeExists</a></div><div class="ttdeci">SubdivisionEdge * edgeExists(SubdivisionPoint *p1, SubdivisionPoint *p2)</div><div class="ttdef"><b>Definition:</b> <a href="subdivsurface_8cpp_source.html#l02603">subdivsurface.cpp:2603</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a7ac65e1c08ede7d63c94b4da7bfe6443"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a7ac65e1c08ede7d63c94b4da7bfe6443">ShipCAD::DevelopedPatch::_showInteriorEdges</a></div><div class="ttdeci">bool _showInteriorEdges</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00219">developedpatch.h:219</a></div></div>
<div class="ttc" id="structShipCAD_1_1PatchPoints_html_ac69ca0b5e51939979f4654afa3b210a9"><div class="ttname"><a href="structShipCAD_1_1PatchPoints.html#ac69ca0b5e51939979f4654afa3b210a9">ShipCAD::PatchPoints::pt</a></div><div class="ttdeci">SubdivisionPoint * pt</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00059">developedpatch.h:59</a></div></div>
<div class="ttc" id="structPatchPointPred_html_a5c23625bf138fee4f16dadcb172eece5"><div class="ttname"><a href="structPatchPointPred.html#a5c23625bf138fee4f16dadcb172eece5">PatchPointPred::operator()</a></div><div class="ttdeci">bool operator()(const ShipCAD::PatchPoints &amp;val)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00205">developedpatch.cpp:205</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_ae3ef9cf6fd1e85f4739ea676b1a10aac"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#ae3ef9cf6fd1e85f4739ea676b1a10aac">ShipCAD::DevelopedPatch::_numIterations</a></div><div class="ttdeci">int _numIterations</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00229">developedpatch.h:229</a></div></div>
<div class="ttc" id="classPointerVector_html_abaee9f77dee6ea2523dff64b184c9f54"><div class="ttname"><a href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">PointerVector::add</a></div><div class="ttdeci">void add(T *elem)</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00072">pointervec.h:72</a></div></div>
<div class="ttc" id="classShipCAD_1_1Entity_html_a747f437fa410f5b8b6251967fd3a90aa"><div class="ttname"><a href="classShipCAD_1_1Entity.html#a747f437fa410f5b8b6251967fd3a90aa">ShipCAD::Entity::getColor</a></div><div class="ttdeci">virtual QColor getColor() const </div><div class="ttdef"><b>Definition:</b> <a href="entity_8h_source.html#l00080">entity.h:80</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_ab6918e553621440eef4efd9e4ae6fd2e"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#ab6918e553621440eef4efd9e4ae6fd2e">ShipCAD::DevelopedPatch::name</a></div><div class="ttdeci">const QString &amp; name()</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00100">developedpatch.h:100</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a7ba24420b1e8a1fb98acac3d38f8e37e"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a7ba24420b1e8a1fb98acac3d38f8e37e">ShipCAD::DevelopedPatch::draw</a></div><div class="ttdeci">virtual void draw(Viewport &amp;vp, LineShader *lineshader)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00190">developedpatch.cpp:190</a></div></div>
<div class="ttc" id="namespaceShipCAD_html"><div class="ttname"><a href="namespaceShipCAD.html">ShipCAD</a></div><div class="ttdef"><b>Definition:</b> <a href="backgroundimage_8h_source.html#l00039">backgroundimage.h:39</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_ac9cab6969a888b9a1833271ce1fb3dde"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#ac9cab6969a888b9a1833271ce1fb3dde">ShipCAD::DevelopedPatch::processTriangle</a></div><div class="ttdeci">void processTriangle(patchpt_iter ind1, patchpt_iter ind2, patchpt_iter ind3, bool &amp;first, bool &amp;error, PolygonOrientation &amp;orientation)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00901">developedpatch.cpp:901</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_af20d320001ec91d649b59488bf08000e"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#af20d320001ec91d649b59488bf08000e">ShipCAD::DevelopedPatch::_showErrorEdges</a></div><div class="ttdeci">bool _showErrorEdges</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00224">developedpatch.h:224</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a438e97b711c6878eba3bf7182e68a3c7"><div class="ttname"><a href="namespaceShipCAD.html#a438e97b711c6878eba3bf7182e68a3c7">ShipCAD::DistPP3D</a></div><div class="ttdeci">float DistPP3D(const QVector3D &amp;p1, const QVector3D &amp;p2)</div><div class="ttdoc">distance between 2 3D points </div><div class="ttdef"><b>Definition:</b> <a href="utility_8cpp_source.html#l00369">utility.cpp:369</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a88ff1deb88a87de3e54de5169edb542a"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a88ff1deb88a87de3e54de5169edb542a">ShipCAD::DevelopedPatch::_mirrorPlane</a></div><div class="ttdeci">Plane _mirrorPlane</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00231">developedpatch.h:231</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_ab970c1f908562c329577a568aa011268"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#ab970c1f908562c329577a568aa011268">ShipCAD::DevelopedPatch::_showStations</a></div><div class="ttdeci">bool _showStations</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00220">developedpatch.h:220</a></div></div>
<div class="ttc" id="classShipCAD_1_1Spline_html"><div class="ttname"><a href="classShipCAD_1_1Spline.html">ShipCAD::Spline</a></div><div class="ttdoc">spline entity used in intersections etc </div><div class="ttdef"><b>Definition:</b> <a href="spline_8h_source.html#l00053">spline.h:53</a></div></div>
<div class="ttc" id="classShipCAD_1_1Plane_html_a77073798d61488aeac1ebe95358e3b98"><div class="ttname"><a href="classShipCAD_1_1Plane.html#a77073798d61488aeac1ebe95358e3b98">ShipCAD::Plane::mirror</a></div><div class="ttdeci">QVector3D mirror(const QVector3D &amp;pt) const </div><div class="ttdoc">get the mirror of a point about the plane </div><div class="ttdef"><b>Definition:</b> <a href="plane_8cpp_source.html#l00153">plane.cpp:153</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a69361fa79b1f818e21306f6266ee45d3"><div class="ttname"><a href="namespaceShipCAD.html#a69361fa79b1f818e21306f6266ee45d3">ShipCAD::DistancepointToLine</a></div><div class="ttdeci">float DistancepointToLine(const QVector3D &amp;p, const QVector3D &amp;l1, const QVector3D &amp;l2)</div><div class="ttdoc">find the distance from a point to the line </div><div class="ttdef"><b>Definition:</b> <a href="utility_8cpp_source.html#l00050">utility.cpp:50</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_af60d915295602a7d973f4accfe6f1074"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#af60d915295602a7d973f4accfe6f1074">ShipCAD::DevelopedPatch::_showSolid</a></div><div class="ttdeci">bool _showSolid</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00216">developedpatch.h:216</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_a6f9f5ac15e7e2821bba27ba06827a4e1"><div class="ttname"><a href="namespaceShipCAD.html#a6f9f5ac15e7e2821bba27ba06827a4e1">ShipCAD::SquaredDistPP</a></div><div class="ttdeci">float SquaredDistPP(const QVector3D &amp;p1, const QVector3D &amp;p2)</div><div class="ttdoc">squared distance between 2 3D points </div><div class="ttdef"><b>Definition:</b> <a href="utility_8cpp_source.html#l00363">utility.cpp:363</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionFace_html_a1f27fc04bf353dd6295da574fa97c1f8"><div class="ttname"><a href="classShipCAD_1_1SubdivisionFace.html#a1f27fc04bf353dd6295da574fa97c1f8">ShipCAD::SubdivisionFace::getArea</a></div><div class="ttdeci">float getArea() const </div><div class="ttdoc">calculate the area of this face </div><div class="ttdef"><b>Definition:</b> <a href="subdivface_8cpp_source.html#l00093">subdivface.cpp:93</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_aff34f25567574603034ffbab8892ad21"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#aff34f25567574603034ffbab8892ad21">ShipCAD::DevelopedPatch::_diagonals</a></div><div class="ttdeci">SplineVector _diagonals</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00211">developedpatch.h:211</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionPoint_html_a285325115089a1b99be4480bf6079bf1"><div class="ttname"><a href="classShipCAD_1_1SubdivisionPoint.html#a285325115089a1b99be4480bf6079bf1">ShipCAD::SubdivisionPoint::getCoordinate</a></div><div class="ttdeci">QVector3D getCoordinate() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivpoint_8h_source.html#l00140">subdivpoint.h:140</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a876f5a294f194b79112c224ed66db35d"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a876f5a294f194b79112c224ed66db35d">ShipCAD::DevelopedPatch::_showWaterlines</a></div><div class="ttdeci">bool _showWaterlines</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00223">developedpatch.h:223</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionPoint_html"><div class="ttname"><a href="classShipCAD_1_1SubdivisionPoint.html">ShipCAD::SubdivisionPoint</a></div><div class="ttdoc">3D Point </div><div class="ttdef"><b>Definition:</b> <a href="subdivpoint_8h_source.html#l00059">subdivpoint.h:59</a></div></div>
<div class="ttc" id="classShipCAD_1_1SubdivisionEdge_html_aa65e2e10929c52fd05b6bb90317977dc"><div class="ttname"><a href="classShipCAD_1_1SubdivisionEdge.html#aa65e2e10929c52fd05b6bb90317977dc">ShipCAD::SubdivisionEdge::endPoint</a></div><div class="ttdeci">SubdivisionPoint * endPoint() const </div><div class="ttdef"><b>Definition:</b> <a href="subdivedge_8h_source.html#l00076">subdivedge.h:76</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a3b00c2638e7bf0d281914bb61d7d9717"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a3b00c2638e7bf0d281914bb61d7d9717">ShipCAD::DevelopedPatch::_cos</a></div><div class="ttdeci">float _cos</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00239">developedpatch.h:239</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a47e52017866102fdc68c2502dd56eb7f"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a47e52017866102fdc68c2502dd56eb7f">ShipCAD::DevelopedPatch::setMirrorOnScreen</a></div><div class="ttdeci">void setMirrorOnScreen(bool set)</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8cpp_source.html#l00152">developedpatch.cpp:152</a></div></div>
<div class="ttc" id="classShipCAD_1_1Plane_html_a1105f3715d9593c0971e0b0959859a84"><div class="ttname"><a href="classShipCAD_1_1Plane.html#a1105f3715d9593c0971e0b0959859a84">ShipCAD::Plane::a</a></div><div class="ttdeci">float a() const </div><div class="ttdef"><b>Definition:</b> <a href="plane_8h_source.html#l00050">plane.h:50</a></div></div>
<div class="ttc" id="classShipCAD_1_1Entity_html_a5e0e5f174d287e807b5409b1aa5704bc"><div class="ttname"><a href="classShipCAD_1_1Entity.html#a5e0e5f174d287e807b5409b1aa5704bc">ShipCAD::Entity::setColor</a></div><div class="ttdeci">void setColor(const QColor &amp;col)</div><div class="ttdef"><b>Definition:</b> <a href="entity_8h_source.html#l00082">entity.h:82</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a2d4528866ab65f5e92a808c21134003e"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a2d4528866ab65f5e92a808c21134003e">ShipCAD::DevelopedPatch::_max2D</a></div><div class="ttdeci">QVector2D _max2D</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00233">developedpatch.h:233</a></div></div>
<div class="ttc" id="classShipCAD_1_1DevelopedPatch_html_a0f6690447bc683f1ea4f4872e1309a3f"><div class="ttname"><a href="classShipCAD_1_1DevelopedPatch.html#a0f6690447bc683f1ea4f4872e1309a3f">ShipCAD::DevelopedPatch::_points</a></div><div class="ttdeci">std::vector&lt; PatchPoints &gt; _points</div><div class="ttdef"><b>Definition:</b> <a href="developedpatch_8h_source.html#l00203">developedpatch.h:203</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Feb 25 2018 15:35:59 for ShipCAD by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
